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;