From: Marko Kreen Date: Thu, 19 Jun 2014 21:32:22 +0000 (+0300) Subject: cbtree: disallow double keys X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=50358b0f1faef5f8b436456ce19cad540fed98dc;p=libusual.git cbtree: disallow double keys --- diff --git a/usual/cbtree.c b/usual/cbtree.c index 69cdd5b..39d2321 100644 --- a/usual/cbtree.c +++ b/usual/cbtree.c @@ -231,7 +231,7 @@ bool cbtree_insert(struct CBTree *tree, void *obj) /* first differing bit is the target position */ newbit = find_crit_bit(key, klen, old_key, old_klen); if (newbit == SAME_KEY) - return true; + return false; return insert_at(tree, newbit, key, klen, obj); }