summaryrefslogtreecommitdiff
path: root/libparted/timer.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-03 14:28:41 +0100
committerJim Meyering <meyering@redhat.com>2011-12-03 15:43:29 +0100
commite9584920f6fe74545be7bced530774ebde624572 (patch)
tree3d87ce799b5de67c6616cebb0e900f2381c5d272 /libparted/timer.c
parenta3b50eb9a85dd9f10edf26925fd246a49abbac0a (diff)
downloadparted-e9584920f6fe74545be7bced530774ebde624572.tar.gz
build: avoid new float-to-double warnings
* libparted/timer.c (ped_timer_new_nested): Mark literal floating point constants with "f" suffix, since they are compared against "float"s. * parted/parted.c (_timer_handler): Likewise.
Diffstat (limited to 'libparted/timer.c')
-rw-r--r--libparted/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libparted/timer.c b/libparted/timer.c
index d12b801..3b51b32 100644
--- a/libparted/timer.c
+++ b/libparted/timer.c
@@ -127,8 +127,8 @@ ped_timer_new_nested (PedTimer* parent, float nest_frac)
if (!parent)
return NULL;
- PED_ASSERT (nest_frac >= 0.0);
- PED_ASSERT (nest_frac <= 1.0);
+ PED_ASSERT (nest_frac >= 0.0f);
+ PED_ASSERT (nest_frac <= 1.0f);
context = (NestedContext*) ped_malloc (sizeof (NestedContext));
if (!context)