Use REDIS_HLL_REGISTER_MAX when possible.

This commit is contained in:
antirez 2014-03-28 12:16:39 +01:00
parent 1c88c5941b
commit f22397dd7f

View File

@ -155,7 +155,7 @@
int _rightshift = 8 - _leftshift; \ int _rightshift = 8 - _leftshift; \
target = ((_p[_byte] << _leftshift) | \ target = ((_p[_byte] << _leftshift) | \
(_p[_byte+1] >> _rightshift)) & \ (_p[_byte+1] >> _rightshift)) & \
((1<<REDIS_HLL_BITS)-1); \ REDIS_HLL_REGISTER_MAX; \
} while(0) } while(0)
/* Set the value of the register at position 'regnum' to 'val'. /* Set the value of the register at position 'regnum' to 'val'.