]> git.saurik.com Git - redis.git/blobdiff - src/ziplist.c
fix rare condition where 'key' would already be destroyed while is was needed later on
[redis.git] / src / ziplist.c
index 4b9d0fadcd15f9a1277e66ffb615ec29dde321fb..6c5827b9c7d4f3c0b80d405bd3b7c2574afdc1ea 100644 (file)
@@ -551,7 +551,7 @@ void ziplistRepr(unsigned char *zl) {
         if (entry.encoding == ZIP_ENC_RAW) {
             fwrite(p,entry.len,1,stdout);
         } else {
-            printf("%lld", zipLoadInteger(p,entry.encoding));
+            printf("%lld", (long long) zipLoadInteger(p,entry.encoding));
         }
         printf("\n");
         p += entry.len;