diff --git a/source/modules/carla_native/audio-base.hpp b/source/modules/carla_native/audio-base.hpp index 0fc4490af..7e0104921 100644 --- a/source/modules/carla_native/audio-base.hpp +++ b/source/modules/carla_native/audio-base.hpp @@ -299,7 +299,7 @@ public: // lock, and put data asap const CarlaMutex::ScopedLocker sl(fMutex); - for (; i < fPool.size && j < rv; ++j) + for (ssize_t size = (ssize_t)fPool.size; i < size && j < rv; ++j) { if (fFileNfo.channels == 1) { @@ -353,7 +353,7 @@ public: else #endif { - for (; i < fPool.size; ++i) + for (ssize_t size = (ssize_t)fPool.size; i < size; ++i) { fPool.buffer[0][i] = 0.0f; fPool.buffer[1][i] = 0.0f;