X86 : Updates to indenting and uint64_t typecasts

This commit is contained in:
PatrickvL 2017-11-20 11:26:32 +01:00
parent 61d9b453f7
commit 69cce01cc6
1 changed files with 11 additions and 11 deletions

View File

@ -975,7 +975,7 @@ bool EmuX86_Opcode_DEC(LPEXCEPTION_POINTERS e, _DInst& info)
return false;
// DEC Destination to src
uint64_t result = dest - 1;
uint64_t result = (uint64_t)dest - (uint64_t)1;
// Write result back
EmuX86_Operand_Write(e, info, 0, static_cast<uint32_t>(result));
@ -1029,7 +1029,7 @@ bool EmuX86_Opcode_INC(LPEXCEPTION_POINTERS e, _DInst& info)
return false;
// INC Destination to src
uint64_t result = dest + 1;
uint64_t result = (uint64_t)dest + (uint64_t)1;
// Write result back
EmuX86_Operand_Write(e, info, 0, static_cast<uint32_t>(result));