1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ktsj 2014-07-30 14:31:53 +00:00
parent a0dc245f72
commit e3230f154c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 30 23:28:10 2014 Kazuki Tsujimoto <kazuki@callcc.net>
* sprintf.c (rb_str_format): like r47006, get rid of
function calls in RSTRING_PTR().
Wed Jul 30 22:10:29 2014 Kazuki Tsujimoto <kazuki@callcc.net>
* process.c (rlimit_resource_type, rlimit_resource_value):

View file

@ -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);