X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/04a2ade90dd15db2a1e685e2e045b8c0181b9eea..02e600653216cebc0746bfbb86b353667a843591:/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); } }