diff options
author | antirez <antirez@metal.(none)> | 2010-12-14 17:46:20 +0100 |
---|---|---|
committer | antirez <antirez@metal.(none)> | 2010-12-14 17:46:20 +0100 |
commit | 648e9654604e1d2c6191e3aceb938da4e1c031b2 (patch) | |
tree | 54523db7445f118e5505edd54f99fcf55ff1a265 /src/t_string.c | |
parent | 603e616bf4e09cdbbfeaf77a5e2a02876c229c35 (diff) | |
download | redis-648e9654604e1d2c6191e3aceb938da4e1c031b2.tar.gz |
removed a test that will never be true fixing the compilation on Linux
Diffstat (limited to 'src/t_string.c')
-rw-r--r-- | src/t_string.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/t_string.c b/src/t_string.c index b71bfe99b..736b1673d 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -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; |