summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 08:26:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 08:26:40 +0000
commit39e524f9b74e1fd7c2eba493d5b0715d58be6c59 (patch)
tree9353565b2a4c5fb6f260abeb11f9209ae8627e97
parent64e3a162117a3ebc1a6e13361d32786031d80f0d (diff)
downloadruby-39e524f9b74e1fd7c2eba493d5b0715d58be6c59.tar.gz
ruby-39e524f9b74e1fd7c2eba493d5b0715d58be6c59.tar.xz
ruby-39e524f9b74e1fd7c2eba493d5b0715d58be6c59.zip
* sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
not verbose mode (-w/-w). [ruby-core:05123] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--sprintf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b9728915d..6bd300397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/sprintf.c b/sprintf.c
index e86f3c7fb..acfbf64d5 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -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);