Mercurial > audlegacy
diff Plugins/Input/modplug/modplugbmp.cpp @ 701:d539e5c5f730 trunk
[svn] Fixes of the remaining GCC 4.1 warnings from external contributor Diego "Flameeyes" Petteno (Gentoo).
| author | chainsaw |
|---|---|
| date | Sun, 26 Feb 2006 13:08:35 -0800 |
| parents | 7fa1738514d5 |
| children | 073d2f46a490 |
line wrap: on
line diff
--- a/Plugins/Input/modplug/modplugbmp.cpp Sun Feb 26 10:21:49 2006 -0800 +++ b/Plugins/Input/modplug/modplugbmp.cpp Sun Feb 26 13:08:35 2006 -0800 @@ -220,7 +220,7 @@ uint n = mBufSize >> 1; for(uint i = 0; i < n; i++) { short old = ((short*)mBuffer)[i]; - ((short*)mBuffer)[i] *= mPreampFactor; + ((short*)mBuffer)[i] *= (short int)mPreampFactor; // detect overflow and clip! if ((old & 0x8000) != (((short*)mBuffer)[i] & 0x8000)) @@ -232,7 +232,7 @@ { for(uint i = 0; i < mBufSize; i++) { uchar old = ((uchar*)mBuffer)[i]; - ((uchar*)mBuffer)[i] *= mPreampFactor; + ((uchar*)mBuffer)[i] *= (short int)mPreampFactor; // detect overflow and clip! if ((old & 0x80) != (((uchar*)mBuffer)[i] & 0x80))
