diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 11:50:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-01 16:48:06 +0200 |
commit | 358c0a4140406c8c38138a88aa03a4fc0ec6e7ee (patch) | |
tree | 21a0c0397ca9bd8e67136c472d8146bb3a22a204 /ingen/Clock.hpp | |
parent | b453818f17a84c01d679088e5a377e244a231981 (diff) | |
download | ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.gz ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.bz2 ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.zip |
Use modern casts
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 |