* 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.
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)
if (timer->state_name)
printf ("%s... ", timer->state_name);
printf (_("%0.f%%\t(time left %.2d:%.2d)"),
- 100.0 * timer->frac,
+ (double) (100.0f * timer->frac),
(int) (tcontext->predicted_time_left / 60),
(int) (tcontext->predicted_time_left % 60));