summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 14:36:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 14:36:54 +0000
commitce8e2d54049ddbe4947ed90295b1b4d11ebaaa52 (patch)
treeb06c84e6da75e1a9821f6decc192299e5be8101c /error.c
parent60e8cd2e686efd3a965cb43ae5963ce31fc90d71 (diff)
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
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
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);
}
/*