From 11daf0545a4f796dff11fc13d16365ab23cbe973 Mon Sep 17 00:00:00 2001 From: franc0is Date: Tue, 8 Sep 2015 23:37:19 -0700 Subject: [PATCH] Fix coap_ticks platforms with no _POSIX_TIMERS (cherry picked from commit bde305210e9003117b51f243014626e057a05212) --- src/coap_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_time.c b/src/coap_time.c index 1da2132c..1f991755 100644 --- a/src/coap_time.c +++ b/src/coap_time.c @@ -70,7 +70,7 @@ coap_ticks(coap_tick_t *t) { * Both cases should not be possible here. */ - tmp = tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)); + tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC); #endif /* not _POSIX_TIMERS */ /* Finally, convert temporary FP representation to multiple of