renumbers error testers basing on 5000.
All checks were successful
continuous-integration/drone/push Build is passing

fixed a compiler bug not checking the lower bound of block depth in find_variable_backward_with_word()
This commit is contained in:
2024-01-23 01:11:13 +09:00
parent 676ba7d746
commit bc7cbd9ed2
21 changed files with 89 additions and 33 deletions

View File

@ -409,7 +409,8 @@ HCL_INFO2 (hcl, "CLASS NAMED VAR [%.*js]\n", name->len, name->ptr);
/* the current function block accesses temporaries in an outer function block */
hcl->c->fnblk.info[hcl->c->fnblk.depth].access_outer = 1;
/* temporaries in an outer function block is accessed by the current function block */
hcl->c->fnblk.info[i - 1].accessed_by_inner = 1;
if (i > 0) hcl->c->fnblk.info[i - 1].accessed_by_inner = 1;
}
return 1;