diff --git a/src/bitops.c b/src/bitops.c index 8d64f23e..2312432f 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -775,7 +775,7 @@ void bitcountCommand(client *c) { /* Convert negative indexes */ if (start < 0) start = strlen+start; if (end < 0) end = strlen+end; - if ((start < 0) && (end < 0) && (start > end)) { + if (start < 0 && end < 0 && start > end) { addReply(c,shared.czero); return; }