[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Thu, 21 Nov 2013 04:07:15 +0000 (04:07 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Thu, 21 Nov 2013 04:07:15 +0000 (04:07 +0000)
Put the conditional expression in parenthesis so that the addition happens after it.

svn path=/branches/ntvdm/; revision=61063

lib/fast486/opcodes.c

index b982996..11796a2 100644 (file)
@@ -4919,8 +4919,8 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeXlat)
     /* Read a byte from DS:[(E)BX + AL] */
     if (!Fast486ReadMemory(State,
                            FAST486_REG_DS,
-                           AddressSize ? State->GeneralRegs[FAST486_REG_EBX].Long
-                                       : State->GeneralRegs[FAST486_REG_EBX].LowWord
+                           (AddressSize ? State->GeneralRegs[FAST486_REG_EBX].Long
+                                        : State->GeneralRegs[FAST486_REG_EBX].LowWord)
                            + State->GeneralRegs[FAST486_REG_EAX].LowByte,
                            FALSE,
                            &Value,