Skip to content

Commit

Permalink
Fix find_local_var_type for empty blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Nov 15, 2023
1 parent 6470887 commit dc7d6ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/kong.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type_ref find_local_var_type(block *b, name_id name) {
if (b == NULL) {
type_ref t;
init_type_ref(&t, NO_NAME);
return t;
}

for (size_t i = 0; i < b->vars.size; ++i) {
Expand Down

0 comments on commit dc7d6ad

Please sign in to comment.