summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-08 07:46:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-08 07:46:18 +0000
commita9a5eaf345b8244feb3c1e576862996be1d9e209 (patch)
tree9c2d1ebd2addb8a1d0fc081a5dbd41997ea4397a /lib
parent6a4e78911f80a1cace59d6ad9bc9504ec0350a59 (diff)
downloadruby-a9a5eaf345b8244feb3c1e576862996be1d9e209.tar.gz
ruby-a9a5eaf345b8244feb3c1e576862996be1d9e209.tar.xz
ruby-a9a5eaf345b8244feb3c1e576862996be1d9e209.zip
* lib/pp.rb (PP::PPMethods::object_address_group): suppress negative
sign for higher heap areas. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 81a453d9a..8176e2d6a 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -193,7 +193,7 @@ class PP < PrettyPrint
end
def object_address_group(obj, &block)
- group(1, sprintf('#<%s:0x%x', obj.class.to_s, obj.__id__ * 2), '>', &block)
+ group(1, sprintf('#<%s:0x%.x', obj.class.to_s, obj.__id__ * 2), '>', &block)
end
def comma_breakable