* 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:
parent
a0dc245f72
commit
e3230f154c
@ -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>
|
Wed Jul 30 22:10:29 2014 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||||
|
|
||||||
* process.c (rlimit_resource_type, rlimit_resource_value):
|
* process.c (rlimit_resource_type, rlimit_resource_value):
|
||||||
|
@ -602,8 +602,8 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
|
|||||||
#endif
|
#endif
|
||||||
len = (int)(p - start + 1); /* including parenthesis */
|
len = (int)(p - start + 1); /* including parenthesis */
|
||||||
if (sym != Qnil) {
|
if (sym != Qnil) {
|
||||||
rb_enc_raise(enc, rb_eArgError, "named%.*s after <%s>",
|
rb_enc_raise(enc, rb_eArgError, "named%.*s after <%"PRIsVALUE">",
|
||||||
len, start, RSTRING_PTR(rb_sym2str(sym)));
|
len, start, rb_sym2str(sym));
|
||||||
}
|
}
|
||||||
CHECKNAMEARG(start, len, enc);
|
CHECKNAMEARG(start, len, enc);
|
||||||
get_hash(&hash, argc, argv);
|
get_hash(&hash, argc, argv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user