aboutsummaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 08:16:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 08:16:48 +0000
commitf524211ee81f154230c9f5ae31d1db90add44239 (patch)
treeacb321baf41809df3168e4655ee30eef4c51a539 /struct.c
parent8430f93b8fa0a166c251c270a550358a0602552d (diff)
downloadruby-f524211ee81f154230c9f5ae31d1db90add44239.tar.gz
struct.c: AREF_HASH_THRESHOLD enum
* struct.c (AREF_HASH_THRESHOLD): make an enum not to exceed the int range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);