From: antirez Date: Thu, 12 Apr 2012 09:49:52 +0000 (+0200) Subject: memtest.c: integer overflow fixed. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/206568257a6df9effd66f292904d0e75c3c928ad memtest.c: integer overflow fixed. --- diff --git a/src/memtest.c b/src/memtest.c index c8b47d48..09b4d831 100644 --- a/src/memtest.c +++ b/src/memtest.c @@ -47,7 +47,7 @@ void memtest_progress_end(void) { } void memtest_progress_step(size_t curr, size_t size, char c) { - size_t chars = (curr*progress_full)/size, j; + size_t chars = ((unsigned long long)curr*progress_full)/size, j; for (j = 0; j < chars-progress_printed; j++) { printf("%c",c);