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

copperplate/clockobj: prevent warning with -Wconversion

make cast explicit to avoid warning when user code is compiled with
-Wconversion
Signed-off-by: 's avatarMauro Salvini <mauro.salvini@smigroup.net>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 85c93ba5
...@@ -136,7 +136,7 @@ void clockobj_ns_to_timespec(ticks_t ns, struct timespec *ts) ...@@ -136,7 +136,7 @@ void clockobj_ns_to_timespec(ticks_t ns, struct timespec *ts)
{ {
unsigned long rem; 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; 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