diff options
| author | Sven Hesse | 2010-10-15 04:37:44 +0000 | 
|---|---|---|
| committer | Sven Hesse | 2010-10-15 04:37:44 +0000 | 
| commit | 089988c11c379e1b48c198a867215365373f6b11 (patch) | |
| tree | 64b9d760ce526c71e5f05d8691646002f150668b /engines/gob/sound/adlib.cpp | |
| parent | dad3f32278436be0831ac19393d4dc77d0b634ea (diff) | |
| download | scummvm-rg350-089988c11c379e1b48c198a867215365373f6b11.tar.gz scummvm-rg350-089988c11c379e1b48c198a867215365373f6b11.tar.bz2 scummvm-rg350-089988c11c379e1b48c198a867215365373f6b11.zip  | |
GOB: Fix Code analysis warnings
See bug report #3087831
svn-id: r53464
Diffstat (limited to 'engines/gob/sound/adlib.cpp')
| -rw-r--r-- | engines/gob/sound/adlib.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/sound/adlib.cpp b/engines/gob/sound/adlib.cpp index 28123668cc..d643ae511b 100644 --- a/engines/gob/sound/adlib.cpp +++ b/engines/gob/sound/adlib.cpp @@ -240,7 +240,7 @@ void AdLib::setKey(byte voice, byte note, bool on, bool spec) {  	freq = _freqs[_notLin[voice]][note - octa * 12];  	writeOPL(0xA0 + voice,  freq & 0xFF); -	writeOPL(0xB0 + voice, (freq >> 8) | (octa << 2) | 0x20 * on); +	writeOPL(0xB0 + voice, (freq >> 8) | (octa << 2) | (0x20 * (on ? 1 : 0)));  	if (!freq)  		warning("AdLib::setKey Voice %d, note %02X unknown", voice, note);  | 
