mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
removed a test that will never be true fixing the compilation on Linux
This commit is contained in:
parent
603e616bf4
commit
648e965460
@ -96,10 +96,8 @@ static int getBitOffsetFromArgument(redisClient *c, robj *o, size_t *offset) {
|
||||
if (getLongLongFromObjectOrReply(c,o,&loffset,err) != REDIS_OK)
|
||||
return REDIS_ERR;
|
||||
|
||||
/* Limit offset to SIZE_T_MAX or 512MB in bytes */
|
||||
if ((loffset < 0) ||
|
||||
((unsigned long long)loffset >= (unsigned)SIZE_T_MAX) ||
|
||||
((unsigned long long)loffset >> 3) >= (512*1024*1024))
|
||||
/* Limit offset to 512MB in bytes */
|
||||
if ((loffset < 0) || ((unsigned long long)loffset >> 3) >= (512*1024*1024))
|
||||
{
|
||||
addReplyError(c,err);
|
||||
return REDIS_ERR;
|
||||
|
Loading…
Reference in New Issue
Block a user