diff options
Diffstat (limited to 'ingen/Clock.hpp')
-rw-r--r-- | ingen/Clock.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ingen/Clock.hpp b/ingen/Clock.hpp index ac940fab..40204a6b 100644 --- a/ingen/Clock.hpp +++ b/ingen/Clock.hpp @@ -52,7 +52,8 @@ private: # else clock_gettime(CLOCK_MONOTONIC, &time); # endif - return (uint64_t)time.tv_sec * 1e6 + (uint64_t)time.tv_nsec / 1e3; + return static_cast<uint64_t>(time.tv_sec) * 1e6 + + static_cast<uint64_t>(time.tv_nsec) / 1e3; } #endif |