Browse Source

Warning fixes

tags/2021-05-28
jules 11 years ago
parent
commit
e91a69080e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 3
- 3
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -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);


Loading…
Cancel
Save