1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

A trick for negative address removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-11-30 05:02:37 +00:00
parent cced56ef7c
commit 1717014d72

View file

@ -167,7 +167,6 @@ class PP < PrettyPrint
def object_address_group(obj, &block)
id = PointerFormat % (obj.__id__ * 2 & PointerMask)
id.sub!(/\Af(?=[[:xdigit:]]{2}+\z)/, '') if id.sub!(/\A\.\./, '')
group(1, "\#<#{obj.class}:0x#{id}", '>', &block)
end