From abbcfe34e18b85b998502bdaa413d9c91a298443 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Jul 2005 03:07:02 +0000 Subject: revered all LLP64 modifies due to portability reason. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 150c69d2e..b87a1d3a9 100644 --- a/object.c +++ b/object.c @@ -359,7 +359,7 @@ rb_any_to_s(obj) len = strlen(cname)+6+16; str = rb_str_new(0, len); /* 6:tags 16:addr */ - snprintf(RSTRING(str)->ptr, len+1, "#<%s:%p>", cname, obj); + snprintf(RSTRING(str)->ptr, len+1, "#<%s:0x%lx>", cname, obj); RSTRING(str)->len = strlen(RSTRING(str)->ptr); if (OBJ_TAINTED(obj)) OBJ_TAINT(str); @@ -442,13 +442,13 @@ rb_obj_inspect(obj) if (rb_inspecting_p(obj)) { len = strlen(c)+10+16+1; str = rb_str_new(0, len); /* 10:tags 16:addr 1:nul */ - snprintf(RSTRING(str)->ptr, len, "#<%s:%p ...>", c, obj); + snprintf(RSTRING(str)->ptr, len, "#<%s:0x%lx ...>", c, obj); RSTRING(str)->len = strlen(RSTRING(str)->ptr); return str; } len = strlen(c)+6+16+1; str = rb_str_new(0, len); /* 6:tags 16:addr 1:nul */ - snprintf(RSTRING(str)->ptr, len, "-<%s:%p", c, obj); + snprintf(RSTRING(str)->ptr, len, "-<%s:0x%lx", c, obj); RSTRING(str)->len = strlen(RSTRING(str)->ptr); return rb_protect_inspect(inspect_obj, obj, str); } -- cgit