mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
RM_ZsetRangeNext()/Prev() typo in define name leading to crash fixed.
This commit is contained in:
parent
5f977c3f8b
commit
5daece2ec6
@ -1535,7 +1535,7 @@ int RM_ZsetRangeNext(RedisModuleKey *key) {
|
|||||||
{
|
{
|
||||||
key->zer = 1;
|
key->zer = 1;
|
||||||
return 0;
|
return 0;
|
||||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_SCORE) {
|
} else if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) {
|
||||||
if (!zslLexValueLteMax(ln->ele,&key->zlrs)) {
|
if (!zslLexValueLteMax(ln->ele,&key->zlrs)) {
|
||||||
key->zer = 1;
|
key->zer = 1;
|
||||||
return 0;
|
return 0;
|
||||||
@ -1598,7 +1598,7 @@ int RM_ZsetRangePrev(RedisModuleKey *key) {
|
|||||||
{
|
{
|
||||||
key->zer = 1;
|
key->zer = 1;
|
||||||
return 0;
|
return 0;
|
||||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_SCORE) {
|
} else if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) {
|
||||||
if (!zslLexValueGteMin(prev->ele,&key->zlrs)) {
|
if (!zslLexValueGteMin(prev->ele,&key->zlrs)) {
|
||||||
key->zer = 1;
|
key->zer = 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user