diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-05-11 17:34:43 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-05-11 17:34:43 +0300 |
commit | ce64c2a32e0f1db8f0f75e1091a24d01fd669044 (patch) | |
tree | 9c1385dbf1459b02f0bc17d1b0df83621d84c35c /drivers | |
parent | 0902915c33883e5fcb39287e4bc82826497d233b (diff) |
Fix Linux/X11 build on ARMs.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 1e34d63b13..05dfd69f58 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -244,7 +244,7 @@ OS::TimeZoneInfo OS_Unix::get_time_zone_info() const { void OS_Unix::delay_usec(uint32_t p_usec) const { - struct timespec rem = { p_usec / 1000000, (p_usec % 1000000) * 1000 }; + struct timespec rem = { static_cast<time_t>(p_usec / 1000000), static_cast<long>((p_usec % 1000000) * 1000) }; while (nanosleep(&rem, &rem) == EINTR) { } } |