diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 08:16:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 08:16:48 +0000 |
commit | f524211ee81f154230c9f5ae31d1db90add44239 (patch) | |
tree | acb321baf41809df3168e4655ee30eef4c51a539 /struct.c | |
parent | 8430f93b8fa0a166c251c270a550358a0602552d (diff) |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |