From db76c54117b1bd390c19de79f33431c4abc67391 Mon Sep 17 00:00:00 2001 From: bruvzg Date: Fri, 11 May 2018 17:34:43 +0300 Subject: Fix Linux/X11 build on ARMs. (cherry picked from commit ce64c2a32e0f1db8f0f75e1091a24d01fd669044) --- drivers/unix/os_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/unix/os_unix.cpp') diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index dfa57a3fb..6b037b4a3 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -235,7 +235,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(p_usec / 1000000), static_cast((p_usec % 1000000) * 1000) }; while (nanosleep(&rem, &rem) == EINTR) { } } -- cgit v1.2.3-70-g09d2