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:
parent
8430f93b8f
commit
f524211ee8
1 changed files with 3 additions and 1 deletions
4
struct.c
4
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);
|
||||
|
|
Loading…
Reference in a new issue