Browse Source

Convolution: Fix integer conversion in unit tests

v7.0.9
reuk 2 years ago
parent
commit
97fa2f0e8a
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      modules/juce_dsp/frequency/juce_Convolution_test.cpp
  2. +2
    -2
      modules/juce_graphics/image_formats/juce_GIFLoader.cpp

+ 1
- 1
modules/juce_dsp/frequency/juce_Convolution_test.cpp 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");


+ 2
- 2
modules/juce_graphics/image_formats/juce_GIFLoader.cpp 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);


Loading…
Cancel
Save