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:
parent
cced56ef7c
commit
1717014d72
@ -167,7 +167,6 @@ class PP < PrettyPrint
|
|||||||
|
|
||||||
def object_address_group(obj, &block)
|
def object_address_group(obj, &block)
|
||||||
id = PointerFormat % (obj.__id__ * 2 & PointerMask)
|
id = PointerFormat % (obj.__id__ * 2 & PointerMask)
|
||||||
id.sub!(/\Af(?=[[:xdigit:]]{2}+\z)/, '') if id.sub!(/\A\.\./, '')
|
|
||||||
group(1, "\#<#{obj.class}:0x#{id}", '>', &block)
|
group(1, "\#<#{obj.class}:0x#{id}", '>', &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user