summaryrefslogtreecommitdiff
path: root/src/bitops.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-06-15 12:16:39 +0200
committerantirez <antirez@gmail.com>2016-06-15 12:16:39 +0200
commiteb45e114965175e766136d6e0d8fbe242bc256b1 (patch)
treece58f6e38e5f2ce51d5c006d96be9e6ddbacbaa3 /src/bitops.c
parentca54335f40f104eee1ca326d13ccaee365840478 (diff)
downloadredis-eb45e114965175e766136d6e0d8fbe242bc256b1.tar.gz
Remove additional round brackets from fix for #3282.
Diffstat (limited to 'src/bitops.c')
-rw-r--r--src/bitops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitops.c b/src/bitops.c
index 8d64f23eb..2312432fc 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;
}