Skip to content

Commit d05c32d

Browse files
authored
Merge pull request #2180 from ruby/warning
Fix `missing braces around initializer` warning
2 parents 5964ce3 + 1fa0886 commit d05c32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rbs_extension/location.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void rbs_loc_alloc_children(rbs_loc *loc, unsigned short cap) {
4040
.len = 0,
4141
.required_p = 0,
4242
.cap = cap,
43-
.entries = { 0 },
43+
.entries = {{ 0 }},
4444
};
4545
}
4646

0 commit comments

Comments
 (0)