1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-01 08:58:47 +03:00

Cleanup float arithmetic gcc warning.

This commit is contained in:
zkabelac 2010-02-15 18:35:06 +00:00
parent 14258c93de
commit 079fec6c5a

View File

@ -1049,7 +1049,7 @@ static int _snpercent_disp(struct dm_report *rh __attribute((unused)), struct dm
return 0;
}
*sortval = snap_percent * UINT64_C(1000);
*sortval = (uint64_t)(snap_percent * 1000.f);
dm_report_field_set_value(field, repstr, sortval);
return 1;
@ -1091,7 +1091,7 @@ static int _copypercent_disp(struct dm_report *rh __attribute((unused)),
return 0;
}
*sortval = percent * UINT64_C(1000);
*sortval = (uint64_t)(percent * 1000.f);
dm_report_field_set_value(field, repstr, sortval);
return 1;