summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/symbol.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/symbol.c b/src/symbol.c
index 1bc9f2676..80437e39e 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -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;