On 05.11.18 14:03, Mauro Salvini via Xenomai wrote:
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;
  }

Thanks, applied.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to