1
0
Fork 0

Another non-format warning fixed

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4074
This commit is contained in:
Peter Veenstra 2018-01-31 19:03:49 +00:00
parent 5cb34a071d
commit 6283b6b5b8

View file

@ -405,7 +405,7 @@ static void TandyDACWrite(Bitu port,Bitu data,Bitu /*iolen*/) {
}
break;
case 0xc6:
tandy.dac.frequency = tandy.dac.frequency & 0xf00 | (Bit8u)(data&0xff);
tandy.dac.frequency = (tandy.dac.frequency & 0xf00) | (Bit8u)(data & 0xff);
switch (tandy.dac.mode&3) {
case 0:
// joystick mode
@ -418,7 +418,7 @@ static void TandyDACWrite(Bitu port,Bitu data,Bitu /*iolen*/) {
}
break;
case 0xc7:
tandy.dac.frequency = tandy.dac.frequency & 0x00ff | (((Bit8u)(data&0xf))<<8);
tandy.dac.frequency = (tandy.dac.frequency & 0x00ff) | (((Bit8u)(data & 0xf)) << 8);
tandy.dac.amplitude = (Bit8u)(data>>5);
switch (tandy.dac.mode&3) {
case 0: