Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
674492bc
Commit
674492bc
authored
Aug 26, 2010
by
antirez
Browse files
removed a duplicated ERRNO checking that is useless at all
parent
acc75bfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
674492bc
...
@@ -375,7 +375,6 @@ int getLongLongFromObject(robj *o, long long *target) {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment