From 055d305ffe1eb9375e917708faf968e65751ab82 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Dec 2022 17:47:56 -0500 Subject: Avoid implicit conversions --- src/client/BlockModel.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp index 7448ca6c..998c118d 100644 --- a/src/client/BlockModel.cpp +++ b/src/client/BlockModel.cpp @@ -202,8 +202,9 @@ BlockModel::default_port_value_range( } if (port->port_property(_uris.lv2_sampleRate)) { - min *= srate; - max *= srate; + const auto frate = static_cast(srate); + min *= frate; + max *= frate; } } @@ -232,8 +233,9 @@ BlockModel::port_value_range(const std::shared_ptr& port, } if (port->port_property(_uris.lv2_sampleRate)) { - min *= srate; - max *= srate; + const auto frate = static_cast(srate); + min *= frate; + max *= frate; } } -- cgit v1.2.1