]> sourceware.org Git - lvm2.git/commitdiff
Cleanup float arithmetic gcc warning.
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 15 Feb 2010 18:35:06 +0000 (18:35 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 15 Feb 2010 18:35:06 +0000 (18:35 +0000)
lib/report/report.c

index 9988be3f922f4d2dac5eb290f4db4952659d3a95..9ea30c352e2a192b546b1cf5849b9fb976da8139 100644 (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;
This page took 0.034744 seconds and 5 git commands to generate.