Unverified Commit 702a868b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4275 from shuujii/add-const-to-pack_table-in-symbol.c

Add `const` to `pack_table` in `src/symbol.c`
parents 01c90811 bedd6725
......@@ -29,13 +29,13 @@ sym_validate_len(mrb_state *mrb, size_t len)
}
#ifndef MRB_ENABLE_ALL_SYMBOLS
static char pack_table[] = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
static const char pack_table[] = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
static mrb_sym
sym_inline_pack(const char *name, uint16_t len)
{
char c;
char *p;
const char *p;
int i;
mrb_sym sym = 0;
int lower = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment