summaryrefslogtreecommitdiff
path: root/src/memtest.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-04-12 11:49:52 +0200
committerantirez <antirez@gmail.com>2012-04-12 11:49:52 +0200
commit4c442e9d88c493a16f4f1197413b063c7205d812 (patch)
treed4bb00f75575d1e83f65fdc565e144e9650de59a /src/memtest.c
parent91e56965a3c5658d54dd6f4bf87c8932d03e1f99 (diff)
downloadredis-4c442e9d88c493a16f4f1197413b063c7205d812.tar.gz
memtest.c: integer overflow fixed.
Diffstat (limited to 'src/memtest.c')
-rw-r--r--src/memtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memtest.c b/src/memtest.c
index c8b47d489..09b4d831b 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);