Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

-1 not needed...

  • Loading branch information...
commit 10c2baa50a21eae161edd76c211b6728d06173b9 1 parent 6fcb180
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  redis.c
View
2  redis.c
@@ -5092,7 +5092,7 @@ static int zslRandomLevel(void) {
int level = 1;
while ((random()&0xFFFF) < (ZSKIPLIST_P * 0xFFFF))
level += 1;
- return (level<ZSKIPLIST_MAXLEVEL) ? level : (ZSKIPLIST_MAXLEVEL-1);
+ return (level<ZSKIPLIST_MAXLEVEL) ? level : ZSKIPLIST_MAXLEVEL;
}
static void zslInsert(zskiplist *zsl, double score, robj *obj) {

0 comments on commit 10c2baa

Please sign in to comment.
Something went wrong with that request. Please try again.