From 9b45592c699d6ca9445259e18839ea535495e23b Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 24 Jan 2011 10:05:42 +0100 Subject: [PATCH] portability fix in redis benchmark, using zu format specified with size_t instead of lu --- src/redis-benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 407c7fb4..618d9c03 100644 --- a/src/redis-benchmark.c +++ b/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); } } -- GitLab