summaryrefslogtreecommitdiffstats
path: root/src/server/RunContext.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-01 11:50:31 +0200
committerDavid Robillard <d@drobilla.net>2020-08-01 16:48:06 +0200
commit358c0a4140406c8c38138a88aa03a4fc0ec6e7ee (patch)
tree21a0c0397ca9bd8e67136c472d8146bb3a22a204 /src/server/RunContext.hpp
parentb453818f17a84c01d679088e5a377e244a231981 (diff)
downloadingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.gz
ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.bz2
ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.zip
Use modern casts
Diffstat (limited to 'src/server/RunContext.hpp')
-rw-r--r--src/server/RunContext.hpp2
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) {