mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Use REDIS_HLL_REGISTER_MAX when possible.
This commit is contained in:
parent
1c88c5941b
commit
f22397dd7f
@ -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'.
|
||||||
|
Loading…
Reference in New Issue
Block a user