Skip to content

Commit 4c77a2b

Browse files
authored
Merge pull request #2197 from ksss/fix-capa
Adjust capacity of location children
2 parents 3f58977 + e01cb61 commit 4c77a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rbs_extension/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ static VALUE parse_type_params(parserstate *state, range *rg, bool module_type_p
12201220

12211221
VALUE location = rbs_new_location(state->buffer, param_range);
12221222
rbs_loc *loc = rbs_check_location(location);
1223-
rbs_loc_alloc_children(loc, 4);
1223+
rbs_loc_alloc_children(loc, 5);
12241224
rbs_loc_add_required_child(loc, rb_intern("name"), name_range);
12251225
rbs_loc_add_optional_child(loc, rb_intern("variance"), variance_range);
12261226
rbs_loc_add_optional_child(loc, rb_intern("unchecked"), unchecked_range);

0 commit comments

Comments
 (0)