Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
61e44f61
Commit
61e44f61
authored
Dec 18, 2011
by
antirez
Browse files
added assertion in zslInsert() that ensures the inserted element score is not NaN
parent
bc62bc5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
61e44f61
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment