Mercurial > audlegacy
changeset 641:76ebe33bb152 trunk
[svn] An explicit cast a day keeps the compiler warning at bay.
author | chainsaw |
---|---|
date | Sat, 18 Feb 2006 16:36:33 -0800 |
parents | f26682a2825b |
children | 880cd914c3fd |
files | Plugins/Input/console/Track_Emu.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/console/Track_Emu.cpp Sat Feb 18 16:15:16 2006 -0800 +++ b/Plugins/Input/console/Track_Emu.cpp Sat Feb 18 16:36:33 2006 -0800 @@ -175,7 +175,7 @@ end_track(); int count = min( fade_block_size, out_count - i ); - int igain = gain * (1 << 15); + int igain = (unsigned int)((double)gain) * (1 << 15); for ( int j = 0; j < count; j++ ) out [i + j] = (out [i + j] * igain) >> 15; }