From 45c7bab445c7d9eef18f24aef0f175ec67ef55c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 26 Jan 2018 09:32:22 -0800 Subject: [PATCH] Fixed issue #176. --- src/semaphore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/semaphore.cpp b/src/semaphore.cpp index 4c6f3cf..756f41e 100644 --- a/src/semaphore.cpp +++ b/src/semaphore.cpp @@ -78,7 +78,7 @@ namespace bx dispatch_time_t dt = 0 > _msecs ? DISPATCH_TIME_FOREVER - : dispatch_time(DISPATCH_TIME_NOW, _msecs*1000000) + : dispatch_time(DISPATCH_TIME_NOW, int64_t(_msecs)*1000000) ; return !dispatch_semaphore_wait(si->m_handle, dt); } @@ -98,7 +98,7 @@ namespace bx void toTimespecMs(timespec& _ts, int32_t _msecs) { - toTimespecNs(_ts, _msecs*1000000); + toTimespecNs(_ts, uint64_t(_msecs)*1000000); } void add(timespec& _ts, int32_t _msecs)