mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some gcc 8 compiler warnings
This commit is contained in:
parent
08d67c763f
commit
6cff481c6a
9 changed files with 46 additions and 43 deletions
|
|
@ -1961,8 +1961,8 @@ private:
|
|||
{
|
||||
const uint8 n0 = si.allocation[i][0];
|
||||
const uint8 n1 = si.allocation[i][1];
|
||||
fraction[0][i] = n0 > 0 ? (float) (((-1 << n0) + getBitsUint16 (n0 + 1) + 1) * constants.muls[n0 + 1][si.scaleFactor[i][0]]) : 0;
|
||||
fraction[1][i] = n1 > 0 ? (float) (((-1 << n1) + getBitsUint16 (n1 + 1) + 1) * constants.muls[n1 + 1][si.scaleFactor[i][1]]) : 0;
|
||||
fraction[0][i] = n0 > 0 ? (float) ((-(1 << n0) + getBitsUint16 (n0 + 1) + 1) * constants.muls[n0 + 1][si.scaleFactor[i][0]]) : 0;
|
||||
fraction[1][i] = n1 > 0 ? (float) ((-(1 << n1) + getBitsUint16 (n1 + 1) + 1) * constants.muls[n1 + 1][si.scaleFactor[i][1]]) : 0;
|
||||
}
|
||||
|
||||
for (i = jsbound; i < 32; ++i)
|
||||
|
|
@ -1971,7 +1971,7 @@ private:
|
|||
|
||||
if (n > 0)
|
||||
{
|
||||
const uint32 w = ((uint32) (-1 << n) + getBitsUint16 (n + 1) + 1);
|
||||
const uint32 w = ((uint32) -(1 << n) + getBitsUint16 (n + 1) + 1);
|
||||
fraction[0][i] = (float) (w * constants.muls[n + 1][si.scaleFactor[i][0]]);
|
||||
fraction[1][i] = (float) (w * constants.muls[n + 1][si.scaleFactor[i][1]]);
|
||||
}
|
||||
|
|
@ -1987,7 +1987,7 @@ private:
|
|||
const uint8 j = si.scaleFactor[i][0];
|
||||
|
||||
if (n > 0)
|
||||
fraction[0][i] = (float) (((-1 << n) + getBitsUint16 (n + 1) + 1) * constants.muls[n + 1][j]);
|
||||
fraction[0][i] = (float) ((-(1 << n) + getBitsUint16 (n + 1) + 1) * constants.muls[n + 1][j]);
|
||||
else
|
||||
fraction[0][i] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue