1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-07-01 08:16:48 +00:00
parent 8430f93b8f
commit f524211ee8

View file

@ -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);