gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 1a701ddafab4583f5373c3976e5a3248ecc6eaa8
parent ebe75222f0fca57b550f00d0eae9082cf40cf7c7
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Fri, 31 May 2024 02:59:42 +0200

fix some warnings

Diffstat:
Msource/jucePluginLib/parameter.cpp | 2+-
Msource/jucePluginLib/parameterbinding.cpp | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginLib/parameter.cpp b/source/jucePluginLib/parameter.cpp @@ -10,7 +10,7 @@ namespace pluginLib { m_range.start = static_cast<float>(m_desc.range.getStart()); m_range.end = static_cast<float>(m_desc.range.getEnd()); - m_range.interval = m_desc.step ? m_desc.step : (m_desc.isDiscrete || m_desc.isBool ? 1.0f : 0.0f); + m_range.interval = m_desc.step ? static_cast<float>(m_desc.step) : (m_desc.isDiscrete || m_desc.isBool ? 1.0f : 0.0f); m_value.addListener(this); } diff --git a/source/jucePluginLib/parameterbinding.cpp b/source/jucePluginLib/parameterbinding.cpp @@ -134,7 +134,7 @@ namespace pluginLib uint32_t count = 0; // we want our long menus to be split into columns of 16 rows each - // but only if we have have more entries than one and a half such column + // but only if we have more entries than one and a half such column const uint32_t splitAt = (sortedValues.size() > 24) ? 16 : 0; for (const auto &vs : sortedValues)