Constify RUBY_REFERENCES_START tables

This commit is contained in:
Nobuyoshi Nakada 2023-11-26 16:04:04 +09:00
parent 7fe7b7bc5a
commit e81c380c0f
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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 */