Skip to content

Commit 8bf0aa7

Browse files
committed
Change {} to { 0 }
1 parent f8fabaa commit 8bf0aa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/rbs_extension/parserstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ parserstate *alloc_parser(VALUE buffer, lexstate *lexer, int start_pos, int end_
334334
.vars = NULL,
335335
.last_comment = NULL,
336336

337-
.constant_pool = {},
337+
.constant_pool = { 0 },
338338
};
339339

340340
// The parser's constant pool is mainly used for storing the names of type variables, which usually aren't many.

src/util/rbs_constant_pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ rbs_constant_pool_resize(rbs_constant_pool_t *pool) {
169169
}
170170

171171
// This storage is initialized by `Init_rbs_extension()` in `main.c`.
172-
static rbs_constant_pool_t RBS_GLOBAL_CONSTANT_POOL_STORAGE = {};
172+
static rbs_constant_pool_t RBS_GLOBAL_CONSTANT_POOL_STORAGE = { 0 };
173173
rbs_constant_pool_t *RBS_GLOBAL_CONSTANT_POOL = &RBS_GLOBAL_CONSTANT_POOL_STORAGE;
174174

175175
/**

0 commit comments

Comments
 (0)