diff options
| author | bruvzg | 2018-05-11 17:34:43 +0300 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-05-13 21:45:09 +0200 |
| commit | db76c54117b1bd390c19de79f33431c4abc67391 (patch) | |
| tree | bb33b295960c8cea96f1e77e6d4e6924f46a0d91 /drivers/unix/os_unix.cpp | |
| parent | c2a8eb20816d857634ee4c38ade3e1a048310890 (diff) | |
| download | godot-db76c54117b1bd390c19de79f33431c4abc67391.tar.gz godot-db76c54117b1bd390c19de79f33431c4abc67391.tar.zst godot-db76c54117b1bd390c19de79f33431c4abc67391.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -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 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<time_t>(p_usec / 1000000), static_cast<long>((p_usec % 1000000) * 1000) }; while (nanosleep(&rem, &rem) == EINTR) { } } |
