ports/devel/godot/files/patch-drivers_unix_os__unix.cpp
Dmitry Marakasov 3a62f63bb3 - Update godot to 3.0.2
PR:		224604
Submitted by:	FreeBSD@ShaneWare.Biz (maintainer)
2018-03-16 17:30:04 +00:00

11 lines
413 B
C++

--- drivers/unix/os_unix.cpp.orig 2018-02-01 19:27:25 UTC
+++ drivers/unix/os_unix.cpp
@@ -235,7 +235,7 @@ OS::TimeZoneInfo OS_Unix::get_time_zone_
void OS_Unix::delay_usec(uint32_t p_usec) const {
- struct timespec rem = { p_usec / 1000000, (p_usec % 1000000) * 1000 };
+ struct timespec rem = { time_t(p_usec) / 1000000, (long(p_usec) % 1000000) * 1000 };
while (nanosleep(&rem, &rem) == EINTR) {
}
}