Skip to content
Browse files

portability fix in redis benchmark, using zu format specified with si…

…ze_t instead of lu
  • Loading branch information...
1 parent 0d808ef commit 9b45592c699d6ca9445259e18839ea535495e23b @antirez committed Jan 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis-benchmark.c
View
2 src/redis-benchmark.c
@@ -143,7 +143,7 @@ static void randomizeClientKey(client c) {
for (i = 0; i < c->randlen; i++) {
r = random() % config.randomkeys_keyspacelen;
- snprintf(buf,sizeof(buf),"%012lu",r);
+ snprintf(buf,sizeof(buf),"%012zu",r);
memcpy(c->randptr[i],buf,12);
}
}

0 comments on commit 9b45592

Please sign in to comment.
Something went wrong with that request. Please try again.