From 85e32dd2212bc6e5bb2b48c5b6c94e048e84afeb Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 11 Jan 2002 09:18:54 +0000 Subject: * re.c (match_select): should propagate taintness. * hash.c (rb_hash_set_default): Hash#default= should return the new value. * string.c (rb_str_to_i): accepts optional base argument. [new] * numeric.c (rb_fix2str): should not handle negative fixnum values int32 via calling sprintf() directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index b91ce7f113..6c4f8cb871 100644 --- a/hash.c +++ b/hash.c @@ -347,7 +347,7 @@ rb_hash_set_default(hash, ifnone) rb_hash_modify(hash); RHASH(hash)->ifnone = ifnone; FL_UNSET(hash, HASH_PROC_DEFAULT); - return hash; + return ifnone; } static int -- cgit v1.2.3