cleanup: use ZIPLIST_ENTRY_END macro instead of 1 (#3672)
update macros ZIPLIST_ENTRY_END i think the right definition is ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-ZIPLIST_END_SIZE)
This commit is contained in:
parent
ef68deb3c2
commit
9c39256a28
|
@ -255,7 +255,7 @@
|
||||||
|
|
||||||
/* Return the pointer to the last byte of a ziplist, which is, the
|
/* Return the pointer to the last byte of a ziplist, which is, the
|
||||||
* end of ziplist FF entry. */
|
* end of ziplist FF entry. */
|
||||||
#define ZIPLIST_ENTRY_END(zl) ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-1)
|
#define ZIPLIST_ENTRY_END(zl) ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-ZIPLIST_END_SIZE)
|
||||||
|
|
||||||
/* Increment the number of items field in the ziplist header. Note that this
|
/* Increment the number of items field in the ziplist header. Note that this
|
||||||
* macro should never overflow the unsigned 16 bit integer, since entries are
|
* macro should never overflow the unsigned 16 bit integer, since entries are
|
||||||
|
|
Loading…
Reference in New Issue