1
0
Fork 0

Ran formatter

This commit is contained in:
3rdit 2026-04-23 14:19:12 +01:00
parent e2b6d3e870
commit 9bfcc8b3a7
No known key found for this signature in database
GPG Key ID: 7DD8A35AE190E434
1 changed files with 3 additions and 2 deletions

View File

@ -188,7 +188,8 @@ void CPUStack::freezeStackSlot()
mFreezeAction->setChecked(mStackFrozen);
}
void CPUStack::realignSlot() const {
void CPUStack::realignSlot() const
{
const duint aligned = mCsp & ~static_cast<duint>(sizeof(duint) - 1);
mAdapter->writeRegister("csp", aligned);
}
@ -418,7 +419,7 @@ bool CPUStack::resolveReturnTo(const duint returnAddress, duint & fromAddress) c
const duint prevVa = readStart + prevOffset;
const Instruction_t instr = mDisasm->DisassembleAt(buf.data() + prevOffset, readSize - prevOffset,
readStart, prevOffset, false);
readStart, prevOffset, false);
if(instr.length <= 0)
return false;
if(prevVa + static_cast<duint>(instr.length) != returnAddress)