From e91a69080e129a82c8cf4836bd151fb1b75d58bf Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 21 Mar 2014 15:26:55 +0000 Subject: [PATCH] Warning fixes --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index e43a60f6b6..f7709bb7b2 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -780,7 +780,7 @@ public: { const int headerLen = htonl (*(juce::int32*) (data + 4)); const struct fxBank* bank = (const struct fxBank*) (data + (8 + headerLen)); - const int version = htonl (bank->version); + const int version = htonl (bank->version); (void) version; jassert ('VstW' == htonl (*(juce::int32*) data)); jassert (1 == htonl (*(juce::int32*) (data + 8))); // version should be 1 according to Steinberg's docs @@ -910,12 +910,12 @@ public: zerostruct (bank); bank.chunkMagic = htonl (cMagic); - bank.byteSize = htonl (bankBlockSize - 8 + mem.getSize()); + bank.byteSize = htonl (bankBlockSize - 8 + (unsigned int) mem.getSize()); bank.fxMagic = htonl (chunkBankMagic); bank.version = htonl (2); bank.fxID = htonl (JucePlugin_VSTUniqueID); bank.fxVersion = htonl (JucePlugin_VersionCode); - bank.content.data.size = htonl (mem.getSize()); + bank.content.data.size = htonl ((unsigned int) mem.getSize()); status = state->write (&bank, bankBlockSize);