diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index a618002a57..b0ee785e63 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -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 (hexVersion); #endif } diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index d53d7ec858..ee3fd64592 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -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;