mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 00:31:21 +00:00
added assertion in zslInsert() that ensures the inserted element score is not NaN
This commit is contained in:
@ -76,6 +76,7 @@ zskiplistNode *zslInsert(zskiplist *zsl, double score, robj *obj) {
|
||||
unsigned int rank[ZSKIPLIST_MAXLEVEL];
|
||||
int i, level;
|
||||
|
||||
redisAssert(!isnan(score));
|
||||
x = zsl->header;
|
||||
for (i = zsl->level-1; i >= 0; i--) {
|
||||
/* store rank that is crossed to reach the insert position */
|
||||
|
Reference in New Issue
Block a user