diff --git a/src/bitops.c b/src/bitops.c index 15ce787c..4c866224 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -360,7 +360,7 @@ void bitopCommand(redisClient *c) { * can take a fast path that performs much better than the * vanilla algorithm. */ j = 0; - if (minlen && numkeys <= 16) { + if (minlen >= sizeof(unsigned long)*4 && numkeys <= 16) { unsigned long *lp[16]; unsigned long *lres = (unsigned long*) res;