还有个地方要改的,继续提交

This commit is contained in:
anod 2023-03-08 15:38:50 +08:00
parent 8aa7f28660
commit 34a82f430d

View File

@ -317,7 +317,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz
CodeLocation found=NULL, current=NULL;
int szfound=0, szcurrent=0;
int reallen = realend / sizeof(instruction_t);
for( int i=0; i < realend; ++i )
for( int i=0; i < reallen; ++i )
{
if( rom[i] == 0 )
{