summaryrefslogtreecommitdiffhomepage
path: root/src/symbol.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2019-02-16 22:13:16 +0900
committerdearblue <[email protected]>2019-02-16 22:13:16 +0900
commit5067a5cd584c4457934872d50cfb33735d55241d (patch)
tree46e0d6f41bfafbdc28db6536358d4672f6a7cafe /src/symbol.c
parent81cbc92513b82bf4ee173fab0a7779ac05a8ef04 (diff)
downloadmruby-5067a5cd584c4457934872d50cfb33735d55241d.tar.gz
mruby-5067a5cd584c4457934872d50cfb33735d55241d.zip
Use `const int` instead of `enum`
Diffstat (limited to 'src/symbol.c')
-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;