summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-11-26 16:04:04 +0900
committerNobuyoshi Nakada <[email protected]>2023-11-26 16:04:23 +0900
commite81c380c0fb3611d5507bfa169b0437a8712ea7c (patch)
tree207de78d453898a151d20d962f8f3630e9c5f1e7 /include/ruby/internal
parent7fe7b7bc5a7a3d79280c9dbf2a2383d386386b0f (diff)
Constify `RUBY_REFERENCES_START` tables
Diffstat (limited to 'include/ruby/internal')
-rw-r--r--include/ruby/internal/gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/gc.h b/include/ruby/internal/gc.h
index 2a5180671c..68472c6454 100644
--- a/include/ruby/internal/gc.h
+++ b/include/ruby/internal/gc.h
@@ -47,7 +47,7 @@ RBIMPL_SYMBOL_EXPORT_BEGIN()
#define REF_EDGE(s, p) (offsetof(struct s, p))
#define REFS_LIST_PTR(l) ((RUBY_DATA_FUNC)l)
#define RUBY_REF_END SIZE_MAX
-#define RUBY_REFERENCES_START(t) static size_t t[] = {
+#define RUBY_REFERENCES_START(t) static const size_t t[] = {
#define RUBY_REFERENCES_END RUBY_REF_END, };
/* gc.c */