]> git.saurik.com Git - redis.git/commitdiff
removed a duplicated ERRNO checking that is useless at all
authorantirez <antirez@gmail.com>
Thu, 26 Aug 2010 10:10:16 +0000 (12:10 +0200)
committerantirez <antirez@gmail.com>
Thu, 26 Aug 2010 10:10:16 +0000 (12:10 +0200)
src/object.c

index dae7f97b21924fdda844e4e07a1b276cba0d7350..92af1d6a9e7ac6f2f5919d0c0ff3f51a856f9e55 100644 (file)
@@ -375,7 +375,6 @@ int getLongLongFromObject(robj *o, long long *target) {
         redisAssert(o->type == REDIS_STRING);
         if (o->encoding == REDIS_ENCODING_RAW) {
             value = strtoll(o->ptr, &eptr, 10);
-            if (errno == ERANGE) return REDIS_ERR;
             if (eptr[0] != '\0') return REDIS_ERR;
             if (errno == ERANGE && (value == LLONG_MIN || value == LLONG_MAX))
                 return REDIS_ERR;