From cd30b3bfd1b8e896455ce825dc8596a3c4ce406d Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 12 Aug 2014 11:36:55 +0100 Subject: [PATCH] Minor warning fixes for mingw --- modules/juce_audio_devices/native/juce_win32_WASAPI.cpp | 4 ++-- modules/juce_core/zip/juce_ZipFile.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp index 98e276cf82..320eca1a53 100644 --- a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp +++ b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp @@ -33,8 +33,8 @@ namespace WasapiClasses void logFailure (HRESULT hr) { (void) hr; - jassert (hr != 0x800401f0); // If you hit this, it means you're trying to call from - // a thread which hasn't been initialised with CoInitialize(). + jassert (hr != (HRESULT) 0x800401f0); // If you hit this, it means you're trying to call from + // a thread which hasn't been initialised with CoInitialize(). #if JUCE_WASAPI_LOGGING if (FAILED (hr)) diff --git a/modules/juce_core/zip/juce_ZipFile.cpp b/modules/juce_core/zip/juce_ZipFile.cpp index 9a3faf9bcc..a76d8b8900 100644 --- a/modules/juce_core/zip/juce_ZipFile.cpp +++ b/modules/juce_core/zip/juce_ZipFile.cpp @@ -347,7 +347,7 @@ void ZipFile::init() in->setPosition (pos); MemoryBlock headerData; - if (in->readIntoMemoryBlock (headerData, size) == size) + if (in->readIntoMemoryBlock (headerData, size) == (size_t) size) { pos = 0;