X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fgenerator.c;h=5bce0301ab6ae848f9315ea5b85c186210c8f30a;hb=d9dab0a24eebad142b33d00ccb0f87b083f02195;hp=cd1a17bfe71059fceb49fff382b7975220284b35;hpb=4bad80470c3895cf00f65359e6b8fa180ec9520f;p=m6w6%2Flibmemcached diff --git a/clients/generator.c b/clients/generator.c index cd1a17bf..5bce0301 100644 --- a/clients/generator.c +++ b/clients/generator.c @@ -49,7 +49,7 @@ pairs_st *pairs_generate(uint64_t number_of, size_t value_length) unsigned int x; pairs_st *pairs; - pairs= (pairs_st*)calloc(number_of + 1, sizeof(pairs_st)); + pairs= (pairs_st*)calloc((size_t)number_of + 1, sizeof(pairs_st)); if (!pairs) goto error;