fix linux build

This commit is contained in:
daan 2020-01-24 10:38:25 -08:00
parent 8b1520f5c1
commit 8cf4882a85

View File

@ -335,7 +335,7 @@ static void* atomic_exchange_ptr(volatile void** p, void* newval) {
uintptr_t ticks(void) {
struct timespec t;
clock_gettime(CLOCK_REALTIME, &t);
return (uintptr_t)t.tv_sec * 1000) + ((uintptr_t)t.tv_nsec / 1000000);
return ((uintptr_t)t.tv_sec * 1000) + ((uintptr_t)t.tv_nsec / 1000000);
}
#else
// low resolution timer