diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-11 05:00:02 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-11 05:00:02 +0000 |
commit | 4bacdc1e46ab788f9285ccd8eccd2776260f9528 (patch) | |
tree | a603c9435fcf3c432ecc1389be508a3aaa7cd4ca /lib/pp.rb | |
parent | fd66442a1d8cec73a14601f8056b9fad238f92be (diff) |
* bignum.c (bignorm): sizeof(long) may be smaller than
sizeof(VALUE). [ruby-dev:29013]
* ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
* ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r-- | lib/pp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,7 +142,7 @@ class PP < PrettyPrint # Object#pretty_print_cycle is used when +obj+ is already # printed, a.k.a the object reference chain has a cycle. def pp(obj) - id = obj.__id__ + id = obj.object_id if check_inspect_key(id) group {obj.pretty_print_cycle self} @@ -180,7 +180,7 @@ class PP < PrettyPrint end def object_address_group(obj, &block) - id = PointerFormat % (obj.__id__ * 2 & PointerMask) + id = PointerFormat % (obj.object_id * 2 & PointerMask) group(1, "\#<#{obj.class}:0x#{id}", '>', &block) end |