Fixed thetype of temp in kbc_send_to_ob(), fixes the incorrect sending of 0xFF's to the guest.

This commit is contained in:
OBattler
2023-06-29 13:57:16 +02:00
parent cef10a63bf
commit 3a60d62434

View File

@@ -323,7 +323,7 @@ static void
kbc_send_to_ob(atkbc_t *dev, uint8_t val, uint8_t channel, uint8_t stat_hi)
{
uint8_t kbc_ven = dev->flags & KBC_VEN_MASK;
uint8_t temp = (channel == 1) ? kbc_translate(dev, val) : val;
int temp = (channel == 1) ? kbc_translate(dev, val) : ((int) val);
if (temp == -1)
return;