mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Remove unnecessary casts.
This commit is contained in:
parent
9b6a27f422
commit
04ddc27bb8
@ -1,6 +1,7 @@
|
|||||||
2005-06-28 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-06-28 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* progress.c (print_percentage): Round the percentage value.
|
* progress.c (print_percentage): Round the percentage value.
|
||||||
|
(dot_create): Remove unnecessary casts.
|
||||||
|
|
||||||
2005-06-28 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-06-28 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
@ -222,12 +222,12 @@ dot_create (wgint initial, wgint total)
|
|||||||
int dot_bytes = opt.dot_bytes;
|
int dot_bytes = opt.dot_bytes;
|
||||||
wgint row_bytes = opt.dot_bytes * opt.dots_in_line;
|
wgint row_bytes = opt.dot_bytes * opt.dots_in_line;
|
||||||
|
|
||||||
int remainder = (int) (dp->initial_length % row_bytes);
|
int remainder = dp->initial_length % row_bytes;
|
||||||
wgint skipped = dp->initial_length - remainder;
|
wgint skipped = dp->initial_length - remainder;
|
||||||
|
|
||||||
if (skipped)
|
if (skipped)
|
||||||
{
|
{
|
||||||
int skipped_k = (int) (skipped / 1024); /* skipped amount in K */
|
int skipped_k = skipped / 1024; /* skipped amount in K */
|
||||||
int skipped_k_len = numdigit (skipped_k);
|
int skipped_k_len = numdigit (skipped_k);
|
||||||
if (skipped_k_len < 5)
|
if (skipped_k_len < 5)
|
||||||
skipped_k_len = 5;
|
skipped_k_len = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user