Removing meaningless conditional

reg[0].I is unsigned so checking if it is greater than or equal to zero is always true by definition.

Fixes #578
This commit is contained in:
Josh Smith 2020-04-29 16:47:03 -05:00 committed by Rafael Kitover
parent 045e95ab4e
commit 3041e3262b
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ void BIOS_EReader_ScanCard(int swi_num)
THUMB_PREFETCH THUMB_PREFETCH
} else if ((swi_num == 0xE3) || (swi_num == 0xE5)) //Dotcode data } else if ((swi_num == 0xE3) || (swi_num == 0xE5)) //Dotcode data
{ {
if ((reg[0].I >= 0) && (reg[0].I <= 0x10)) { if (reg[0].I <= 0x10) {
if (decodestate == 0) { if (decodestate == 0) {
for (i = 0x17; i >= 0; i--) { for (i = 0x17; i >= 0; i--) {
if ((0x17 - i) < 8) if ((0x17 - i) < 8)