Cleanup -Wfloat-conversion warning.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-02-27 23:53:15 +00:00 committed by Andrew Borodin
parent 2a5b76b09b
commit a482f38581
2 changed files with 4 additions and 4 deletions

View File

@ -588,7 +588,7 @@ status_msg_init (status_msg_t * sm, const char *title, double delay, status_msg_
sm->dlg = dlg_create (TRUE, 0, 0, 7, min (max (40, COLS / 2), COLS), dialog_colors,
NULL, NULL, NULL, title, DLG_CENTER);
sm->start = start;
sm->delay = delay * G_USEC_PER_SEC;
sm->delay = (guint64) (delay * G_USEC_PER_SEC);
sm->block = FALSE;
sm->init = init_cb;

View File

@ -343,9 +343,9 @@ static void
file_frmt_time (char *buffer, double eta_secs)
{
int eta_hours, eta_mins, eta_s;
eta_hours = eta_secs / (60 * 60);
eta_mins = (eta_secs - (eta_hours * 60 * 60)) / 60;
eta_s = eta_secs - (eta_hours * 60 * 60 + eta_mins * 60);
eta_hours = (int) (eta_secs / (60 * 60));
eta_mins = (int) ((eta_secs - (eta_hours * 60 * 60)) / 60);
eta_s = (int) (eta_secs - (eta_hours * 60 * 60 + eta_mins * 60));
g_snprintf (buffer, BUF_TINY, _("%d:%02d.%02d"), eta_hours, eta_mins, eta_s);
}