about summary refs log tree commit
path: root/ext/rpatricia/rpatricia.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpatricia/rpatricia.c')
-rw-r--r--ext/rpatricia/rpatricia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/rpatricia/rpatricia.c b/ext/rpatricia/rpatricia.c
index 2c3fcc9..38246e1 100644
--- a/ext/rpatricia/rpatricia.c
+++ b/ext/rpatricia/rpatricia.c
@@ -114,7 +114,7 @@ p_match (VALUE self, VALUE r_key)
   node = patricia_search_best(tree, prefix);
   Deref_Prefix (prefix);
 
-  return node ? wrap_node(node) : Qfalse;
+  return node ? wrap_node(node) : Qnil;
 }
 
 static VALUE
@@ -144,7 +144,7 @@ p_match_exact (VALUE self, VALUE r_key)
   node = patricia_search_exact(tree, prefix);
   Deref_Prefix (prefix);
 
-  return node ? wrap_node(node) : Qfalse;
+  return node ? wrap_node(node) : Qnil;
 }
 
 static VALUE