summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 14:31:53 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 14:31:53 +0000
commite3230f154c874917f9c4384498558da3fdaba432 (patch)
treef1a6d4292154a1dd5ff5e1e898a8db7e7b2617d5 /sprintf.c
parenta0dc245f72afba5889a528074d079d310effeb3b (diff)
* sprintf.c (rb_str_format): like r47006, get rid of
function calls in RSTRING_PTR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sprintf.c b/sprintf.c
index 3d2d6db..c4f304f 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -602,8 +602,8 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
#endif
len = (int)(p - start + 1); /* including parenthesis */
if (sym != Qnil) {
- rb_enc_raise(enc, rb_eArgError, "named%.*s after <%s>",
- len, start, RSTRING_PTR(rb_sym2str(sym)));
+ rb_enc_raise(enc, rb_eArgError, "named%.*s after <%"PRIsVALUE">",
+ len, start, rb_sym2str(sym));
}
CHECKNAMEARG(start, len, enc);
get_hash(&hash, argc, argv);