From: antirez <antirez@metal.(none)>
Date: Tue, 14 Dec 2010 16:46:20 +0000 (+0100)
Subject: removed a test that will never be true fixing the compilation on Linux
X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/648e9654604e1d2c6191e3aceb938da4e1c031b2

removed a test that will never be true fixing the compilation on Linux
---

diff --git a/src/t_string.c b/src/t_string.c
index b71bfe99..736b1673 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;