mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
not verbose mode (-w/-w). [ruby-core:05123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f9f39da9ae
commit
0abd06b244
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 7 16:32:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
|
||||
not verbose mode (-w/-w). [ruby-core:05123]
|
||||
|
||||
Tue Jun 7 10:30:49 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/multi-tk.rb: slave-ip fails to call procedures
|
||||
|
|
|
|||
|
|
@ -774,7 +774,7 @@ rb_f_sprintf(argc, argv)
|
|||
/* XXX - We cannot validiate the number of arguments because
|
||||
* the format string may contain `n$'-style argument selector.
|
||||
*/
|
||||
if (RTEST(ruby_verbose) && posarg >= 0 && nextarg < argc) {
|
||||
if (RTEST(ruby_debug) && posarg >= 0 && nextarg < argc) {
|
||||
rb_raise(rb_eArgError, "too many arguments for format string");
|
||||
}
|
||||
rb_str_resize(result, blen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue