This is the mail archive of the
lvm2-cvs@sourceware.org
mailing list for the LVM2 project.
LVM2/lib/report report.c
- From: zkabelac at sourceware dot org
- To: lvm-devel at redhat dot com, lvm2-cvs at sourceware dot org
- Date: 15 Feb 2010 18:35:06 -0000
- Subject: LVM2/lib/report report.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2010-02-15 18:35:06
Modified files:
lib/report : report.c
Log message:
Cleanup float arithmetic gcc warning.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/report.c.diff?cvsroot=lvm2&r1=1.113&r2=1.114
--- LVM2/lib/report/report.c 2010/02/15 18:34:00 1.113
+++ LVM2/lib/report/report.c 2010/02/15 18:35:06 1.114
@@ -1049,7 +1049,7 @@
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 @@
return 0;
}
- *sortval = percent * UINT64_C(1000);
+ *sortval = (uint64_t)(percent * 1000.f);
dm_report_field_set_value(field, repstr, sortval);
return 1;