# HG changeset patch # User Tony Vroon # Date 1239314729 -3600 # Node ID bc94a0cca4f5e8962e9a7333ad6b50444f6b45d7 # Parent 5fe8ac99a33d1ceb37bc76eefe2f13a04f2182aa Place suggested parentheses around operand arithmetic. diff -r 5fe8ac99a33d -r bc94a0cca4f5 src/adplug/core/rol.cxx --- a/src/adplug/core/rol.cxx Thu Apr 09 22:57:02 2009 +0100 +++ b/src/adplug/core/rol.cxx Thu Apr 09 23:05:29 2009 +0100 @@ -426,7 +426,7 @@ opl->write( 0xc0+voice , modulator.fbc ); opl->write( 0xe0+op_offset, modulator.waveform ); - volumeCache[voice] = (carrier.ksltl & 0xc0) | volumeCache[voice] & 0x3f; + volumeCache[voice] = (carrier.ksltl & 0xc0) | (volumeCache[voice] & 0x3f); opl->write( 0x23+op_offset, carrier.ammulti ); opl->write( 0x43+op_offset, volumeCache[voice] ); @@ -439,7 +439,7 @@ { int const op_offset = drum_table[voice-kSnareDrumChannel]; - volumeCache[voice] = (modulator.ksltl & 0xc0) | volumeCache[voice] & 0x3f; + volumeCache[voice] = (modulator.ksltl & 0xc0) | (volumeCache[voice] & 0x3f); opl->write( 0x20+op_offset, modulator.ammulti ); opl->write( 0x40+op_offset, volumeCache[voice] );