mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Cast the arguments to make_h_number() to uintmax_t before multiplying
them... Otherwise the result will be truncated anyway.
This commit is contained in:
parent
1930e303cf
commit
1c9fe2e4b2
1 changed files with 2 additions and 2 deletions
|
|
@ -805,9 +805,9 @@ print_label(struct sun_disklabel *sl, const char *disk, FILE *out)
|
|||
if (hflag) {
|
||||
fprintf(out, " %c: %10s",
|
||||
'a' + i,
|
||||
make_h_number(sl->sl_part[i].sdkp_nsectors * 512));
|
||||
make_h_number((uintmax_t)sl->sl_part[i].sdkp_nsectors * 512));
|
||||
fprintf(out, " %10s",
|
||||
make_h_number(sl->sl_part[i].sdkp_cyloffset *
|
||||
make_h_number((uintmax_t)sl->sl_part[i].sdkp_cyloffset *
|
||||
512 * secpercyl));
|
||||
} else {
|
||||
fprintf(out, " %c: %10ju %10u",
|
||||
|
|
|
|||
Loading…
Reference in a new issue