From 61fd2a339dc19eb7b2caa39ef29c53fcec5d4043 Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 22 Nov 2016 11:30:30 +0000 Subject: [PATCH] Fixed a MSVC 2015 warning in mp3 audio decoder --- .../juce_audio_formats/codecs/juce_MP3AudioFormat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp index 4921ec0892..680933a0cd 100644 --- a/modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp @@ -2020,7 +2020,7 @@ private: for (int i = 0; i < jsbound; ++i) { const int16 step = allocTable->bits; - allocTable += (1 << step); + allocTable += (static_cast (1) << step); si.allocation[i][0] = getBitsUint8 (step); si.allocation[i][1] = getBitsUint8 (step); } @@ -2029,7 +2029,7 @@ private: { const int16 step = allocTable->bits; const uint8 b0 = getBitsUint8 (step); - allocTable += (1 << step); + allocTable += (static_cast (1) << step); si.allocation[i][0] = b0; si.allocation[i][1] = b0; } @@ -2045,7 +2045,7 @@ private: for (int i = 0; i < sblimit; ++i) { const int16 step = allocTable->bits; - allocTable += (1 << step); + allocTable += (static_cast (1) << step); si.allocation[i][0] = getBitsUint8 (step); } @@ -2131,7 +2131,7 @@ private: } } - allocTable += (1 << step); + allocTable += (static_cast (1) << step); } for (int i = jsbound; i < frame.layer2SubBandLimit; ++i) @@ -2182,7 +2182,7 @@ private: fraction[0][0][i] = fraction[0][1][i] = fraction[0][2][i] = 0; fraction[1][0][i] = fraction[1][1][i] = fraction[1][2][i] = 0; } - allocTable += (1 << step); + allocTable += (static_cast (1) << step); } for (int ch = 0; ch < frame.numChannels; ++ch)