diff options
Diffstat (limited to 'src/ziplist.c')
-rw-r--r-- | src/ziplist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ziplist.c b/src/ziplist.c index 96ba47e13..a4f38c5e8 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -1713,7 +1713,7 @@ int ziplistTest(int argc, char **argv) { if (p == NULL) { printf("No entry\n"); } else { - printf("ERROR: Out of range index should return NULL, returned offset: %ld\n", p-zl); + printf("ERROR: Out of range index should return NULL, returned offset: %ld\n", (long)(p-zl)); return 1; } printf("\n"); @@ -1763,7 +1763,7 @@ int ziplistTest(int argc, char **argv) { if (p == NULL) { printf("No entry\n"); } else { - printf("ERROR: Out of range index should return NULL, returned offset: %ld\n", p-zl); + printf("ERROR: Out of range index should return NULL, returned offset: %ld\n", (long)(p-zl)); return 1; } printf("\n"); |