mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Fixed a compiler warning in the previous commit
This commit is contained in:
parent
c38282778d
commit
1b0fb11667
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue