修正u32*到u8*

This commit is contained in:
anod 2023-03-21 10:19:33 +08:00
parent bca831ce9b
commit a361c2d968

View File

@ -406,7 +406,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz
u32 start = realend - INSTR_SIZE;
memset( &rom[INSTR_LEN(start)], 0, sznrom-start );
*newsize = sznrom;
return rom + sznrom - ( (totalsize+0x1f) & (~0xf) );
return rom + INSTR_LEN( sznrom - ( (totalsize+0x1f) & (~0xf) ) );
}
return rom + INSTR_LEN( realend );