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
5daece2e
Commit
5daece2e
authored
May 10, 2016
by
antirez
Browse files
RM_ZsetRangeNext()/Prev() typo in define name leading to crash fixed.
parent
5f977c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
5daece2e
...
...
@@ -1535,7 +1535,7 @@ int RM_ZsetRangeNext(RedisModuleKey *key) {
{
key
->
zer
=
1
;
return
0
;
}
else
if
(
key
->
ztype
==
REDISMODULE_ZSET_RANGE_
SCORE
)
{
}
else
if
(
key
->
ztype
==
REDISMODULE_ZSET_RANGE_
LEX
)
{
if
(
!
zslLexValueLteMax
(
ln
->
ele
,
&
key
->
zlrs
))
{
key
->
zer
=
1
;
return
0
;
...
...
@@ -1598,7 +1598,7 @@ int RM_ZsetRangePrev(RedisModuleKey *key) {
{
key
->
zer
=
1
;
return
0
;
}
else
if
(
key
->
ztype
==
REDISMODULE_ZSET_RANGE_
SCORE
)
{
}
else
if
(
key
->
ztype
==
REDISMODULE_ZSET_RANGE_
LEX
)
{
if
(
!
zslLexValueGteMin
(
prev
->
ele
,
&
key
->
zlrs
))
{
key
->
zer
=
1
;
return
0
;
...
...
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