Commit 0ffeadd2 authored by antirez's avatar antirez
Browse files

portability fix in redis benchmark, using zu format specified with size_t instead of lu

parent 9738e587
...@@ -143,7 +143,7 @@ static void randomizeClientKey(client c) { ...@@ -143,7 +143,7 @@ static void randomizeClientKey(client c) {
for (i = 0; i < c->randlen; i++) { for (i = 0; i < c->randlen; i++) {
r = random() % config.randomkeys_keyspacelen; r = random() % config.randomkeys_keyspacelen;
snprintf(buf,sizeof(buf),"%012lu",r); snprintf(buf,sizeof(buf),"%012zu",r);
memcpy(c->randptr[i],buf,12); memcpy(c->randptr[i],buf,12);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment