summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 10:22:06 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 10:22:06 +0000
commit84abcfac308f21c70beaed923eaaa67ae51aede8 (patch)
tree9cfab9a74743fef9385b2911f496d3a5f71b5447
parentba0823611358f1aa35692ca0b059bedcf061664c (diff)
downloadruby-84abcfac308f21c70beaed923eaaa67ae51aede8.tar.gz
ruby-84abcfac308f21c70beaed923eaaa67ae51aede8.tar.xz
ruby-84abcfac308f21c70beaed923eaaa67ae51aede8.zip
* ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
because ruby_verbose is not a real variable, so the address of parameter is not collect. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ruby.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b6f99da2c..6408899f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jun 18 19:20:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
+ because ruby_verbose is not a real variable, so the address of
+ parameter is not collect.
+
Wed Jun 18 18:31:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (errmap): add some pipe errors.
diff --git a/ruby.c b/ruby.c
index d1f02e69f..ab26e245a 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1448,7 +1448,7 @@ verbose_setter(VALUE val, ID id, VALUE *variable)
static VALUE
opt_W_getter(VALUE val, ID id, VALUE *variable)
{
- switch (*variable) {
+ switch (ruby_verbose) {
case Qnil:
return INT2FIX(0);
case Qfalse: