* hash.c (HASH_REJECT_COPY_EXTRA_STATES): turn off the old
  behavior, copying extra states by accident.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-12-26 05:25:08 +00:00
Родитель 5265e6c0b9
Коммит 3a247f6489
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Dec 26 14:25:03 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (HASH_REJECT_COPY_EXTRA_STATES): turn off the old
behavior, copying extra states by accident.
Thu Dec 26 10:49:14 2013 Yukihiro Matsumoto <matz@ruby-lang.org> Thu Dec 26 10:49:14 2013 Yukihiro Matsumoto <matz@ruby-lang.org>
* version.h (RUBY_VERSION): 2.2.0 development has started. * version.h (RUBY_VERSION): 2.2.0 development has started.

2
hash.c
Просмотреть файл

@ -31,7 +31,7 @@
((klass = has_extra_methods(rb_obj_class(hash))) != 0) || \ ((klass = has_extra_methods(rb_obj_class(hash))) != 0) || \
FL_TEST((hash), FL_EXIVAR|FL_TAINT|HASH_PROC_DEFAULT) || \ FL_TEST((hash), FL_EXIVAR|FL_TAINT|HASH_PROC_DEFAULT) || \
!NIL_P(RHASH_IFNONE(hash))) !NIL_P(RHASH_IFNONE(hash)))
#define HASH_REJECT_COPY_EXTRA_STATES 1 #define HASH_REJECT_COPY_EXTRA_STATES 0
static VALUE static VALUE
has_extra_methods(VALUE klass) has_extra_methods(VALUE klass)