aboutsummaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 2e24e963f9..e06d5f0fdc 100644
--- a/struct.c
+++ b/struct.c
@@ -14,7 +14,9 @@
#include "id.h"
/* only for struct[:field] access */
-#define AREF_HASH_THRESHOLD (10)
+enum {
+ AREF_HASH_THRESHOLD = 10
+};
VALUE rb_method_for_self_aref(VALUE name, VALUE arg, rb_insn_func_t func);
VALUE rb_method_for_self_aset(VALUE name, VALUE arg, rb_insn_func_t func);