aboutsummaryrefslogtreecommitdiffstats
path: root/ruby_parser.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-01-14 17:55:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-01-14 17:55:11 +0900
commit0610f555ea4f3ba571482f90393fe8c0701cd58a (patch)
treead0a25d4edfe51b545debf9e7e959f82b9f8d417 /ruby_parser.c
parent4e5754a459ea10c73381b3009bb889e83077575c (diff)
downloadruby-0610f555ea4f3ba571482f90393fe8c0701cd58a.tar.gz
Constify `rb_global_parser_config`
Diffstat (limited to 'ruby_parser.c')
-rw-r--r--ruby_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index a76a8231f5..d932b0f7be 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -484,7 +484,7 @@ extern VALUE rb_eArgError;
extern VALUE rb_mRubyVMFrozenCore;
VALUE rb_node_case_when_optimizable_literal(const NODE *const node);
-rb_parser_config_t rb_global_parser_config = (rb_parser_config_t) {
+static const rb_parser_config_t rb_global_parser_config = {
.malloc = ruby_xmalloc,
.calloc = ruby_xcalloc,
.realloc = ruby_xrealloc,