From 2ced6d0769bd2827ba0d488e7c3455a2273fb88b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Jun 2011 12:01:16 -0700 Subject: proper return value for init_copy function Ruby won't do anything with it, but it avoids a compiler warning. --- ext/rpatricia/rpatricia.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-24-ge0c7