make cast explicit to avoid warning when user code is compiled with -Wconversion
Signed-off-by: Mauro Salvini <mauro.salv...@smigroup.net> --- include/copperplate/clockobj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/copperplate/clockobj.h b/include/copperplate/clockobj.h index 8568794d9..24c748557 100644 --- a/include/copperplate/clockobj.h +++ b/include/copperplate/clockobj.h @@ -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; } -- 2.11.0