X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/2380388974bd0256e1b123d608940355144e9fd4..7229d60d0356e94f553623e0492f636687ac39e6:/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); } }