Fix for C4805: '|': unsafe mix of type 'unsigned char' and type 'bool' in operation

This commit is contained in:
OPNA2608 2022-03-31 20:46:27 +02:00
parent 82d893082c
commit 4c19a973ef
6 changed files with 14 additions and 14 deletions

View file

@ -1120,7 +1120,7 @@ void ay8910_device::sound_stream_update(short** outputs, int outLen)
for (int chan = 0; chan < NUM_CHANNELS; chan++)
{
tone = &m_tone[chan];
m_vol_enabled[chan] = (tone->output | tone_enable(chan)) & (noise_output() | noise_enable(chan));
m_vol_enabled[chan] = (tone->output | (unsigned char)tone_enable(chan)) & (noise_output() | (unsigned char)noise_enable(chan));
}
/* update envelope */