diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 951475f8..2088cce2 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -119,12 +119,12 @@ uint64_t current_time(void) | |||
119 | time = ft.dwHighDateTime; | 119 | time = ft.dwHighDateTime; |
120 | time <<= 32; | 120 | time <<= 32; |
121 | time |= ft.dwLowDateTime; | 121 | time |= ft.dwLowDateTime; |
122 | time -= 116444736000000000UL; | 122 | time -= 116444736000000000ULL; |
123 | return time / 10; | 123 | return time / 10; |
124 | #else | 124 | #else |
125 | struct timeval a; | 125 | struct timeval a; |
126 | gettimeofday(&a, NULL); | 126 | gettimeofday(&a, NULL); |
127 | time = 1000000UL * a.tv_sec + a.tv_usec; | 127 | time = 1000000ULL * a.tv_sec + a.tv_usec; |
128 | return time; | 128 | return time; |
129 | #endif | 129 | #endif |
130 | } | 130 | } |