Commit 5067a5cd authored by dearblue's avatar dearblue

Use `const int` instead of `enum`

parent 81cbc925
......@@ -34,10 +34,8 @@ static const char pack_table[] = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRS
static mrb_sym
sym_inline_pack(const char *name, uint16_t len)
{
enum {
lower_length_max = (MRB_SYMBOL_BITSIZE - 2) / 5,
mix_length_max = (MRB_SYMBOL_BITSIZE - 2) / 6
};
const int lower_length_max = (MRB_SYMBOL_BITSIZE - 2) / 5;
const int mix_length_max = (MRB_SYMBOL_BITSIZE - 2) / 6;
char c;
const char *p;
......
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