removed a duplicated ERRNO checking that is useless at all

This commit is contained in:
antirez 2010-08-26 12:10:16 +02:00
parent acc75bfd4f
commit 674492bceb

View 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;