mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
removed a duplicated ERRNO checking that is useless at all
This commit is contained in:
parent
acc75bfd4f
commit
674492bceb
@ -375,7 +375,6 @@ int getLongLongFromObject(robj *o, long long *target) {
|
|||||||
redisAssert(o->type == REDIS_STRING);
|
redisAssert(o->type == REDIS_STRING);
|
||||||
if (o->encoding == REDIS_ENCODING_RAW) {
|
if (o->encoding == REDIS_ENCODING_RAW) {
|
||||||
value = strtoll(o->ptr, &eptr, 10);
|
value = strtoll(o->ptr, &eptr, 10);
|
||||||
if (errno == ERANGE) return REDIS_ERR;
|
|
||||||
if (eptr[0] != '\0') return REDIS_ERR;
|
if (eptr[0] != '\0') return REDIS_ERR;
|
||||||
if (errno == ERANGE && (value == LLONG_MIN || value == LLONG_MAX))
|
if (errno == ERANGE && (value == LLONG_MIN || value == LLONG_MAX))
|
||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user