Skip to content

Commit

Permalink
Constify function tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 8, 2023
1 parent 39511b8 commit 5889cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile.c
Expand Up @@ -12848,7 +12848,7 @@ ibf_load_object_symbol(const struct ibf_load *load, const struct ibf_object_head
}

typedef void (*ibf_dump_object_function)(struct ibf_dump *dump, VALUE obj);
static ibf_dump_object_function dump_object_functions[RUBY_T_MASK+1] = {
static const ibf_dump_object_function dump_object_functions[RUBY_T_MASK+1] = {
ibf_dump_object_unsupported, /* T_NONE */
ibf_dump_object_unsupported, /* T_OBJECT */
ibf_dump_object_class, /* T_CLASS */
Expand Down Expand Up @@ -12941,7 +12941,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj)
}

typedef VALUE (*ibf_load_object_function)(const struct ibf_load *load, const struct ibf_object_header *header, ibf_offset_t offset);
static ibf_load_object_function load_object_functions[RUBY_T_MASK+1] = {
static const ibf_load_object_function load_object_functions[RUBY_T_MASK+1] = {
ibf_load_object_unsupported, /* T_NONE */
ibf_load_object_unsupported, /* T_OBJECT */
ibf_load_object_class, /* T_CLASS */
Expand Down

0 comments on commit 5889cbd

Please sign in to comment.