mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
2a5b76b09b
commit
a482f38581
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user