From 1221374be91ff8037e4c2e6c58c52356f58ff409 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 29 Apr 2019 15:25:41 +0100 Subject: [PATCH] DSP: Fixed an incorrect assertion in one of the AudioBlock constructors --- modules/juce_dsp/containers/juce_AudioBlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_dsp/containers/juce_AudioBlock.h b/modules/juce_dsp/containers/juce_AudioBlock.h index 30510811df..cbe5ea038b 100644 --- a/modules/juce_dsp/containers/juce_AudioBlock.h +++ b/modules/juce_dsp/containers/juce_AudioBlock.h @@ -163,7 +163,7 @@ public: startSample (startSampleIndex), numSamples (static_cast (buffer.getNumSamples()) - startSampleIndex) { - jassert (startSample < numSamples); + jassert (startSample < static_cast (buffer.getNumSamples())); } AudioBlock (const AudioBlock& other) noexcept = default;