X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6eaad66373982aa9c1c0ff6b584c542670548d0e..5d1b4fb6983f5acd9cfb6ee5f5715547688448d2:/src/redis-benchmark.c 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); } }