mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (w_object): Use HASH_PROC_DEFAULT directly from internal.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d5bf44cd8
commit
65a564376e
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 23 09:45:49 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* marshal.c (w_object): Use HASH_PROC_DEFAULT directly from internal.h
|
||||
|
||||
Sat Nov 23 08:43:23 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* gc.c: Rename heap_pages_swept_num to heap_pages_swept_slots to
|
||||
|
|
|
@ -797,8 +797,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
|
|||
if (NIL_P(RHASH_IFNONE(obj))) {
|
||||
w_byte(TYPE_HASH, arg);
|
||||
}
|
||||
else if (FL_TEST(obj, FL_USER2)) {
|
||||
/* FL_USER2 means HASH_PROC_DEFAULT (see hash.c) */
|
||||
else if (FL_TEST(obj, HASH_PROC_DEFAULT)) {
|
||||
rb_raise(rb_eTypeError, "can't dump hash with default proc");
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue