summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-27 14:29:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-27 14:29:13 +0000
commitb0d4f9bc0bd4f0374e28dd0509d83b377e19e504 (patch)
treefab658f977c1d691ff375e359c7bad724da75f0d /eval.c
parentf0412db9ca4c3cbd94cb3b4ad56a3283fc27a208 (diff)
downloadruby-b0d4f9bc0bd4f0374e28dd0509d83b377e19e504.tar.gz
ruby-b0d4f9bc0bd4f0374e28dd0509d83b377e19e504.tar.xz
ruby-b0d4f9bc0bd4f0374e28dd0509d83b377e19e504.zip
* gc.c (obj_free): make message formant consistent with one from
gc_mark(). [ruby-talk:149668] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 90f8d692f..3ac7d07e2 100644
--- a/eval.c
+++ b/eval.c
@@ -8511,13 +8511,13 @@ proc_to_s(self)
len += strlen(node->nd_file) + 2 + (SIZEOF_LONG*CHAR_BIT-NODE_LSHIFT)/3;
str = rb_str_new(0, len);
snprintf(RSTRING(str)->ptr, len+1,
- "#<%s:0x%lx@%s:%d>", cname, (VALUE)data->body,
+ "#<%s:0x%.*lx@%s:%d>", cname, w, (VALUE)data->body,
node->nd_file, nd_line(node));
}
else {
str = rb_str_new(0, len);
snprintf(RSTRING(str)->ptr, len+1,
- "#<%s:0x%lx>", cname, (VALUE)data->body);
+ "#<%s:0x%.*lx>", cname, w, (VALUE)data->body);
}
RSTRING(str)->len = strlen(RSTRING(str)->ptr);
if (OBJ_TAINTED(self)) OBJ_TAINT(str);