mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (kwmerge_i): add WB.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0f1df31bdf
commit
5a70af1d59
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jun 19 06:29:31 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm.c (kwmerge_i): add WB.
|
||||
|
||||
Wed Jun 19 06:26:49 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* hash.c: `st_update()' also has same issue of last fix.
|
||||
|
|
4
vm.c
4
vm.c
|
@ -2174,7 +2174,9 @@ static int
|
|||
kwmerge_i(VALUE key, VALUE value, VALUE hash)
|
||||
{
|
||||
if (!SYMBOL_P(key)) Check_Type(key, T_SYMBOL);
|
||||
st_update(RHASH_TBL(hash), key, kwmerge_ii, (st_data_t)value);
|
||||
if (st_update(RHASH_TBL(hash), key, kwmerge_ii, (st_data_t)value) == 0) { /* !existing */
|
||||
OBJ_WRITTEN(hash, Qundef, value);
|
||||
}
|
||||
return ST_CONTINUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue