mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +00:00
Typo
This commit is contained in:
parent
eae33c1c81
commit
586500c0ef
@ -88,7 +88,7 @@ static int getBitOffsetFromArgument(redisClient *c, robj *o, size_t *offset) {
|
|||||||
if (getLongLongFromObjectOrReply(c,o,&loffset,err) != REDIS_OK)
|
if (getLongLongFromObjectOrReply(c,o,&loffset,err) != REDIS_OK)
|
||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
|
|
||||||
/* Limit offset to SIZE_T_MAX or 1GB in bytes */
|
/* Limit offset to SIZE_T_MAX or 512MB in bytes */
|
||||||
if ((loffset < 0) ||
|
if ((loffset < 0) ||
|
||||||
((unsigned long long)loffset >= (unsigned)SIZE_T_MAX) ||
|
((unsigned long long)loffset >= (unsigned)SIZE_T_MAX) ||
|
||||||
((unsigned long long)loffset >> 3) >= (512*1024*1024))
|
((unsigned long long)loffset >> 3) >= (512*1024*1024))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user