mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
parent
c2a8eb2081
commit
db76c54117
2 changed files with 3 additions and 4 deletions
|
|
@ -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<time_t>(p_usec / 1000000), static_cast<long>((p_usec % 1000000) * 1000) };
|
||||
while (nanosleep(&rem, &rem) == EINTR) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue