Commit 6694bea3 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Cast time_t to work with 32 bit time_t

Fixes #1851.
parent 2b8b174d
......@@ -540,8 +540,9 @@ static void
print_duration(WINDOW *w, time_t t)
{
wprintw(w, "%4lu+%02lu:%02lu:%02lu",
t / 86400, (t % 86400) / 3600, (t % 3600) / 60, t % 60);
wprintw(w, "%4jd+%02jd:%02jd:%02jd",
(intmax_t)t / 86400, (intmax_t)(t % 86400) / 3600,
(intmax_t)(t % 3600) / 60, (intmax_t)t % 60);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment