summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-31 06:20:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-31 06:20:10 +0000
commitfe933ddc685942f3722dac9b09d23d9243a72ddc (patch)
tree92e27e4c6b21eda16fd985a2549563d66d4fff83 /marshal.c
parent3cfd65346b3f9a36da05d81a530c8c33dd4209ed (diff)
* marshal.c (marshal_load): ruby_verbose test should be wrapped by
RTEST(). * hash.c (rb_hash_index): should return nil (not the default value) if value is not in the hash. * bignum.c (rb_cstr2inum): "0 ff".hex should return 0, not 255. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 8ef121119f..87f65b2d57 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1067,7 +1067,7 @@ marshal_load(argc, argv)
\tformat version %d.%d required; %d.%d given",
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
}
- if (ruby_verbose && minor != MARSHAL_MINOR) {
+ if (RTEST(ruby_verbose) && minor != MARSHAL_MINOR) {
rb_warn("incompatible marshal file format (can be read)\n\
\tformat version %d.%d required; %d.%d given",
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);