Browse Source

Fixed a compiler warning in the previous commit

tags/2021-05-28
hogliux 8 years ago
parent
commit
1b0fb11667
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  2. +2
    -2
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 4
- 4
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1488,9 +1488,9 @@ private:
// number, that they do so according to yfede's encoding table in the link
// below. If not, then this code will need an if (isSteinberg()) in the
// future.
auto major = (hexVersion >> 16) & 0xff;
auto minor = (hexVersion >> 8) & 0xff;
auto bugfix = hexVersion & 0xff;
int major = (hexVersion >> 16) & 0xff;
int minor = (hexVersion >> 8) & 0xff;
int bugfix = hexVersion & 0xff;
// for details, see: https://forum.juce.com/t/issues-with-version-integer-reported-by-vst2/23867
@@ -1503,7 +1503,7 @@ private:
return major * 10000000 + minor * 100000 + bugfix * 1000;
// Encoding D
return hexVersion;
return static_cast<int32> (hexVersion);
#endif
}


+ 2
- 2
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -1974,7 +1974,7 @@ private:
// See yfede's post for the rational on this encoding
// https://forum.juce.com/t/issues-with-version-integer-reported-by-vst2/23867/6
auto major = 0, minor = 0, build = 0, bugfix = 0;
unsigned int major = 0, minor = 0, build = 0, bugfix = 0;
if (v < 10) // Encoding A
{
@@ -2008,7 +2008,7 @@ private:
bugfix = (v % 1000);
}
s << major << '.' << minor << '.' << build << '.' << bugfix;
s << (int) major << '.' << (int) minor << '.' << (int) build << '.' << (int) bugfix;
}
return s;


Loading…
Cancel
Save