about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-16 12:01:16 -0700
committerEric Wong <normalperson@yhbt.net>2011-06-16 12:01:16 -0700
commit2ced6d0769bd2827ba0d488e7c3455a2273fb88b (patch)
tree699b1f5711e1d88696ca6bcde35dc45e73b1ad35
parent5e580a48a930fff71bcfded65616dcfd9c17e19c (diff)
downloadrpatricia-2ced6d0769bd2827ba0d488e7c3455a2273fb88b.tar.gz
proper return value for init_copy function
Ruby won't do anything with it, but it avoids a compiler
warning.
-rw-r--r--ext/rpatricia/rpatricia.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/rpatricia/rpatricia.c b/ext/rpatricia/rpatricia.c
index 81e0990..822c6c3 100644
--- a/ext/rpatricia/rpatricia.c
+++ b/ext/rpatricia/rpatricia.c
@@ -326,6 +326,8 @@ p_init_copy(VALUE self, VALUE orig)
       PATRICIA_DATA_SET(node, user_data);
     } PATRICIA_WALK_END;
   }
+
+  return self;
 }
 
 static VALUE