Skip to content

Commit

Permalink
Fix coap_ticks platforms with no _POSIX_TIMERS
Browse files Browse the repository at this point in the history
  • Loading branch information
franc0is committed Sep 9, 2015
1 parent 9a51231 commit bde3052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/posix/platform_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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
Expand Down

0 comments on commit bde3052

Please sign in to comment.