From a110611dd8413eb3bceeb05c6da5160a355d20d2 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 17 Sep 2013 15:06:48 +0100 Subject: [PATCH] MemoryMappedAudioFormatReader fix. --- modules/juce_audio_formats/format/juce_AudioFormatReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp b/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp index eb569e14c5..64aa3c7a89 100644 --- a/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp +++ b/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp @@ -420,7 +420,7 @@ static int memoryReadDummyVariable; // used to force the compiler not to optimis void MemoryMappedAudioFormatReader::touchSample (int64 sample) const noexcept { if (map != nullptr && mappedSection.contains (sample)) - memoryReadDummyVariable += *(int*) sampleToPointer (sample); + memoryReadDummyVariable += *(char*) sampleToPointer (sample); else jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read. }