From 674492bcebbfd59612ad65d7429b3db5735bd447 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 26 Aug 2010 12:10:16 +0200 Subject: [PATCH] removed a duplicated ERRNO checking that is useless at all --- src/object.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/object.c b/src/object.c index dae7f97b..92af1d6a 100644 --- a/src/object.c +++ b/src/object.c @@ -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; -- 2.45.2