From ce8e2d54049ddbe4947ed90295b1b4d11ebaaa52 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 24 May 2012 14:36:54 +0000 Subject: Feature #5896 * vsnprintf.c (BSD_vfprintf): [EXPERIMENTAL] object representation in rb_enc_vsprintf(). [Feature #5896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 88c4c226cd..2bca03f0da 100644 --- a/error.c +++ b/error.c @@ -1116,9 +1116,9 @@ nometh_err_args(VALUE self) void rb_invalid_str(const char *str, const char *type) { - volatile VALUE s = rb_str_inspect(rb_str_new2(str)); + VALUE s = rb_str_inspect(rb_str_new2(str)); - rb_raise(rb_eArgError, "invalid value for %s: %s", type, RSTRING_PTR(s)); + rb_raise(rb_eArgError, "invalid value for %s: %"PRIsVALUE, type, s); } /* -- cgit v1.2.3