From 3866433fe273eded1e601b3274028684c3e77919 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 25 Jun 2013 16:10:04 -0700 Subject: FIX: force correct timer precision on Mac OS X --- librabbitmq/amqp_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librabbitmq/amqp_timer.c b/librabbitmq/amqp_timer.c index 026661a..7066358 100644 --- a/librabbitmq/amqp_timer.c +++ b/librabbitmq/amqp_timer.c @@ -75,7 +75,8 @@ amqp_get_monotonic_timestamp(void) } } - timestamp = timestamp * s_timebase.numer / s_timebase.denom; + timestamp *= (uint64_t)s_timebase.numer; + timestamp /= (uint64_t)s_timebase.denom; return timestamp; } -- cgit v1.2.1