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 | 872f8b5373e4643e196660c70e8ee693e59163d2 (patch) | |
| tree | a603c9435fcf3c432ecc1389be508a3aaa7cd4ca /lib/pp.rb | |
| parent | 883324e0dae7782e1e3fdf67240a655b2ad44c45 (diff) | |
| download | ruby-872f8b5373e4643e196660c70e8ee693e59163d2.tar.gz ruby-872f8b5373e4643e196660c70e8ee693e59163d2.tar.xz ruby-872f8b5373e4643e196660c70e8ee693e59163d2.zip | |
* 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: http://svn.ruby-lang.org/repos/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 |
