summaryrefslogtreecommitdiff
path: root/hash.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 /hash.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 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 43c1526a14..4a829ab156 100644
--- a/hash.c
+++ b/hash.c
@@ -361,7 +361,7 @@ rb_hash_index(hash, value)
VALUE args[2];
args[0] = value;
- args[1] = RHASH(hash)->ifnone;
+ args[1] = Qnil;
st_foreach(RHASH(hash)->tbl, index_i, args);