projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc75bf
)
removed a duplicated ERRNO checking that is useless at all
author
antirez
<antirez@gmail.com>
Thu, 26 Aug 2010 10:10:16 +0000
(12:10 +0200)
committer
antirez
<antirez@gmail.com>
Thu, 26 Aug 2010 10:10:16 +0000
(12:10 +0200)
src/object.c
patch
|
blob
|
blame
|
history
diff --git
a/src/object.c
b/src/object.c
index dae7f97b21924fdda844e4e07a1b276cba0d7350..92af1d6a9e7ac6f2f5919d0c0ff3f51a856f9e55 100644
(file)
--- 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;