Commit eb45e114 authored by antirez's avatar antirez
Browse files

Remove additional round brackets from fix for #3282.

parent ca54335f
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment