Align functions to up to 16 bytes in the function scanner

This commit is contained in:
Kingcom 2017-04-16 08:31:56 +02:00 committed by Gregory Hainaut
parent d23caa9b72
commit 92aa270062
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ namespace MIPSAnalyst
if (end) {
// most functions are aligned to 8 or 16 bytes
// add the padding to this one
if (((addr+8) % 8) && r5900Debug.read32(addr+8) == 0)
while (((addr+8) % 16) && r5900Debug.read32(addr+8) == 0)
addr += 4;
currentFunction.end = addr + 4;