1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Convolution: Fix integer conversion in unit tests

This commit is contained in:
reuk 2023-07-31 14:50:32 +01:00
parent 5f44c14576
commit 97fa2f0e8a
2 changed files with 3 additions and 3 deletions

View file

@ -470,7 +470,7 @@ public:
Convolution::Stereo::no,
Convolution::Trim::yes,
Convolution::Normalise::no,
AudioBlock<const float> (channels, numElementsInArray (channels), length));
AudioBlock<const float> (channels, numElementsInArray (channels), (size_t) length));
}
beginTest ("IRs with extra silence are trimmed appropriately");

View file

@ -324,8 +324,8 @@ private:
if (finished)
return -1;
buffer[0] = buffer [lastByteIndex - 2];
buffer[1] = buffer [lastByteIndex - 1];
buffer[0] = buffer [jmax (0, lastByteIndex - 2)];
buffer[1] = buffer [jmax (0, lastByteIndex - 1)];
const int n = readDataBlock (buffer + 2);