]> git.saurik.com Git - redis.git/commitdiff
ziplist.c endianess fixes, chapter 4.
authorantirez <antirez@gmail.com>
Thu, 9 Feb 2012 15:36:25 +0000 (16:36 +0100)
committerantirez <antirez@gmail.com>
Thu, 9 Feb 2012 15:36:25 +0000 (16:36 +0100)
src/ziplist.c

index 95103dc076c9c9b61a5ea8b6675029b1d4f0942a..de0ad82ed9060d47e2ddd84cf4a9d337dbc10a4c 100644 (file)
@@ -465,7 +465,7 @@ static unsigned char *__ziplistDelete(unsigned char *zl, unsigned char *p, unsig
              * size of prevlen doesn't have an effect on the *tail* offset. */
             tail = zipEntry(p);
             if (p[tail.headersize+tail.len] != ZIP_END) {
-                ZIPLIST_TAIL_OFFSET(zl) +=
+                ZIPLIST_TAIL_OFFSET(zl) =
                    intrev32ifbe(intrev32ifbe(ZIPLIST_TAIL_OFFSET(zl))+nextdiff);
             }