Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6375e5dc
Commit
6375e5dc
authored
Apr 12, 2012
by
antirez
Browse files
memtest.c: integer overflow fixed.
parent
d8769edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/memtest.c
View file @
6375e5dc
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment