зеркало из https://github.com/github/ruby.git
* hash.c (rb_any_hash): fixed performance issues with nil, true,
false as hash keys. a patch from Matthias Waechter. [ruby-core:21568] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f327dd57bb
Коммит
ad049bc5df
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Jan 27 03:43:34 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* hash.c (rb_any_hash): fixed performance issues with nil, true,
|
||||||
|
false as hash keys. a patch from Matthias Waechter.
|
||||||
|
[ruby-core:21568]
|
||||||
|
|
||||||
Tue Jan 27 03:23:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Jan 27 03:23:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (create_makefile): should point correct path to
|
* lib/mkmf.rb (create_makefile): should point correct path to
|
||||||
|
|
3
hash.c
3
hash.c
|
@ -69,6 +69,9 @@ rb_any_hash(VALUE a)
|
||||||
switch (TYPE(a)) {
|
switch (TYPE(a)) {
|
||||||
case T_FIXNUM:
|
case T_FIXNUM:
|
||||||
case T_SYMBOL:
|
case T_SYMBOL:
|
||||||
|
case T_NIL:
|
||||||
|
case T_FALSE:
|
||||||
|
case T_TRUE:
|
||||||
hnum = (int)a;
|
hnum = (int)a;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче