We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e67a1 commit 2f26045Copy full SHA for 2f26045
src/common/time.h
@@ -20,7 +20,7 @@ static inline uint64_t ffTimeGetTick() //In msec
20
#else
21
struct timespec timeNow;
22
clock_gettime(CLOCK_MONOTONIC, &timeNow);
23
- return (uint64_t)((timeNow.tv_sec * 1000ull) + (timeNow.tv_nsec / 1000000ull));
+ return (uint64_t)(((uint64_t) timeNow.tv_sec * 1000u) + ((uint64_t) timeNow.tv_nsec / 1000000u));
24
#endif
25
}
26
@@ -33,7 +33,7 @@ static inline uint64_t ffTimeGetNow()
33
34
35
clock_gettime(CLOCK_REALTIME, &timeNow);
36
37
38
39
0 commit comments