Commit 5af60cc9 authored by Mauro Salvini via Xenomai's avatar Mauro Salvini via Xenomai Committed by Jan Kiszka
Browse files

copperplate/clockobj: prevent warning with -Wconversion

make cast explicit to avoid warning when user code is compiled with
Signed-off-by: default avatarMauro Salvini <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 85c93ba5
......@@ -136,7 +136,7 @@ void clockobj_ns_to_timespec(ticks_t ns, struct timespec *ts)
unsigned long rem;
ts->tv_sec = cobalt_divrem_billion(ns, &rem);
ts->tv_sec = (time_t)cobalt_divrem_billion(ns, &rem);
ts->tv_nsec = rem;
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