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 --- src/server/RunContext.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/RunContext.hpp') diff --git a/src/server/RunContext.hpp b/src/server/RunContext.hpp index 9190d172..0ba4916b 100644 --- a/src/server/RunContext.hpp +++ b/src/server/RunContext.hpp @@ -101,7 +101,7 @@ public: * less time to avoid a dropout when running in real time). */ inline uint64_t duration() const { - return (uint64_t)_nframes * 1e6 / _rate; + return static_cast(_nframes) * 1e6 / _rate; } inline void locate(FrameTime s, SampleCount nframes) { -- cgit v1.2.1