diff options
Diffstat (limited to 'src/server/RunContext.hpp')
-rw-r--r-- | src/server/RunContext.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint64_t>(_nframes) * 1e6 / _rate; } inline void locate(FrameTime s, SampleCount nframes) { |