Fix issue with the way of benching the BTREE of KLIB.

Forgot to initialize the key in the search pass.
This commit is contained in:
Patrick Pelissier committed 2018-04-03 20:10:11 +02:00
1 parent 9768b5b37a
commit 3ef4a9f413
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ static void test_rbtree(size_t n)
rand_init();
unsigned int s = 0;
for (size_t i = 0; i < n; i++) {
unsigned long j = 0;
unsigned long j = rand_get();
if (kb_getp(kTree, tree, &j) != 0)
s+= j;
}