mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Fix casting to uint64_t when returning unix system time
(cherry picked from commit add91724e6
)
This commit is contained in:
parent
0c0c911ae8
commit
7ef78e87c1
@ -206,7 +206,7 @@ uint64_t OS_Unix::get_system_time_secs() const {
|
||||
uint64_t OS_Unix::get_system_time_msecs() const {
|
||||
struct timeval tv_now;
|
||||
gettimeofday(&tv_now, NULL);
|
||||
return uint64_t(tv_now.tv_sec * 1000 + tv_now.tv_usec / 1000);
|
||||
return uint64_t(tv_now.tv_sec) * 1000 + uint64_t(tv_now.tv_usec) / 1000;
|
||||
}
|
||||
|
||||
OS::Date OS_Unix::get_date(bool utc) const {
|
||||
|
Loading…
Reference in New Issue
Block a user