mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* hash.c (replace_i): ignore when key == Qundef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da548b67f5
commit
23f89a8932
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jun 1 17:26:24 2001 K.Kosako <kosako@sofnec.co.jp>
|
||||||
|
|
||||||
|
* hash.c (replace_i): ignore when key == Qundef.
|
||||||
|
|
||||||
Fri Jun 1 16:50:59 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Jun 1 16:50:59 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (call_args2): confusion with list_append() and
|
* parse.y (call_args2): confusion with list_append() and
|
||||||
|
|
5
hash.c
5
hash.c
|
@ -510,7 +510,10 @@ static int
|
||||||
replace_i(key, val, hash)
|
replace_i(key, val, hash)
|
||||||
VALUE key, val, hash;
|
VALUE key, val, hash;
|
||||||
{
|
{
|
||||||
rb_hash_aset(hash, key, val);
|
if (key != Qundef) {
|
||||||
|
rb_hash_aset(hash, key, val);
|
||||||
|
}
|
||||||
|
|
||||||
return ST_CONTINUE;
|
return ST_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue