ruby-changes:39003
From: nobu <ko1@a...>
Date: Wed, 1 Jul 2015 17:17:04 +0900 (JST)
Subject: [ruby-changes:39003] nobu:r51084 (trunk): struct.c: AREF_HASH_THRESHOLD enum
nobu 2015-07-01 17:16:48 +0900 (Wed, 01 Jul 2015) New Revision: 51084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51084 Log: struct.c: AREF_HASH_THRESHOLD enum * struct.c (AREF_HASH_THRESHOLD): make an enum not to exceed the int range. Modified files: trunk/struct.c Index: struct.c =================================================================== --- struct.c (revision 51083) +++ struct.c (revision 51084) @@ -14,7 +14,9 @@ https://github.com/ruby/ruby/blob/trunk/struct.c#L14 #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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/