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
commit53462c819d732527b2042d14ff4bb783300611d0 (patch)
treeacb321baf41809df3168e4655ee30eef4c51a539 /struct.c
parentff526255969a05d393c1f1dca953474496aca472 (diff)
downloadruby-53462c819d732527b2042d14ff4bb783300611d0.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);