Browse Source

Fix build with old compilers

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
5a58a90cef
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/native-plugins/xycontroller.cpp

+ 2
- 2
source/native-plugins/xycontroller.cpp View File

@@ -131,9 +131,9 @@ protected:

carla_zeroStruct(channels);

for (const water::String chan : chans)
for (const water::String *it=chans.begin(), *end=chans.end(); it != end; ++it)
{
const int ichan = std::atoi(chan.toRawUTF8());
const int ichan = std::atoi((*it).toRawUTF8());
CARLA_SAFE_ASSERT_INT_CONTINUE(ichan >= 1 && ichan <= 16, ichan);

channels[ichan-1] = true;


Loading…
Cancel
Save