1
0
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:
hniksic 2005-06-28 02:32:40 -07:00
parent 9b6a27f422
commit 04ddc27bb8
2 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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;