From 358c0a4140406c8c38138a88aa03a4fc0ec6e7ee Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 11:50:31 +0200 Subject: Use modern casts --- ingen/Clock.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ingen/Clock.hpp') 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(time.tv_sec) * 1e6 + + static_cast(time.tv_nsec) / 1e3; } #endif -- cgit v1.2.1