An effect plug-in we’re making with JUCE 4.2.3 caused Vienna Ensemble to crash upon plug-in scan.
We’ve tracked it dow to line 1870 (I don’t have the slightest idea what lines 1869 through 1871 do):
if ((config[i] = (config[i] + 1) % maxChans[i]) > 0)
However changing it to
if ((config[i] = (maxChans[i])? (config[i] + 1) % maxChans[i] : 0) > 0)
seems to have fixed the issue but we’re absolutely unsure whether this may introduce new issues.
Are we probably doing something else wrong?