diff --git a/src/flat_skiplist.c b/src/flat_skiplist.c index 28b69e6..3557df8 100644 --- a/src/flat_skiplist.c +++ b/src/flat_skiplist.c @@ -251,16 +251,6 @@ static FlatSkiplistNode *flat_skiplist_get_first_larger_or_equal( } return previous; - - /* - if (previous == sl->top) { - return sl->top; - } - else { - return previous->prev; - } - return previous->links[0]; - */ } static FlatSkiplistNode *flat_skiplist_get_first_larger( @@ -293,7 +283,6 @@ static FlatSkiplistNode *flat_skiplist_get_first_larger( } return previous; - //return previous->links[0]; } int flat_skiplist_delete(FlatSkiplist *sl, void *data) diff --git a/src/tests/test_skiplist.c b/src/tests/test_skiplist.c index e25187c..39ea16a 100644 --- a/src/tests/test_skiplist.c +++ b/src/tests/test_skiplist.c @@ -274,7 +274,7 @@ static int test_stable_sort() assert(result == ENOENT); start.key = max_occur_key; - end.key = 32; + end.key = 100; result = skiplist_find_range(&sl, &start, &end, &iterator); assert(result == 0);