Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9942070f
Commit
9942070f
authored
Jun 15, 2016
by
antirez
Browse files
Remove additional round brackets from fix for #3282.
parent
f45fa5d0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bitops.c
View file @
9942070f
...
@@ -775,7 +775,7 @@ void bitcountCommand(client *c) {
...
@@ -775,7 +775,7 @@ void bitcountCommand(client *c) {
/* Convert negative indexes */
/* Convert negative indexes */
if
(
start
<
0
)
start
=
strlen
+
start
;
if
(
start
<
0
)
start
=
strlen
+
start
;
if
(
end
<
0
)
end
=
strlen
+
end
;
if
(
end
<
0
)
end
=
strlen
+
end
;
if
(
(
start
<
0
)
&&
(
end
<
0
)
&&
(
start
>
end
)
)
{
if
(
start
<
0
&&
end
<
0
&&
start
>
end
)
{
addReply
(
c
,
shared
.
czero
);
addReply
(
c
,
shared
.
czero
);
return
;
return
;
}
}
...
...
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