diff options
| author | Ariel Manzur | 2015-09-09 20:24:38 +0000 |
|---|---|---|
| committer | Ariel Manzur | 2015-09-09 20:24:38 +0000 |
| commit | e3e93da6b94cdf14e9a6f466cf5f50a857166928 (patch) | |
| tree | 7f882dfe3aa3df6f8bed2a1b537e513488034984 /drivers/unix/os_unix.cpp | |
| parent | 4d900859e2a62d73710ee71e73ebfbebb9c0003c (diff) | |
| download | godot-e3e93da6b94cdf14e9a6f466cf5f50a857166928.tar.gz godot-e3e93da6b94cdf14e9a6f466cf5f50a857166928.tar.zst godot-e3e93da6b94cdf14e9a6f466cf5f50a857166928.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 314e13cee..05af7ee90 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -226,7 +226,8 @@ uint64_t OS_Unix::get_unix_time() const { uint64_t OS_Unix::get_system_time_msec() const { struct timeval tv_now; gettimeofday(&tv_now, NULL); - localtime(&tv_now.tv_usec); + //localtime(&tv_now.tv_usec); + localtime((const long *)&tv_now.tv_usec); uint64_t msec = tv_now.tv_usec/1000; return msec; } |
