ifix case where we lose hash table output.
This commit is contained in:
parent
c85e76f20f
commit
7b84608e5e
@ -105,7 +105,8 @@ find_or_insert(Keys, Index, Size, N, CmpF, Vals, Key, NewVal, Hash, NewHash) :-
|
|||||||
->
|
->
|
||||||
% do rb_update
|
% do rb_update
|
||||||
array_element(Vals, Index, Mutable),
|
array_element(Vals, Index, Mutable),
|
||||||
update_mutable(NewVal, Mutable)
|
update_mutable(NewVal, Mutable),
|
||||||
|
Hash = NewHash
|
||||||
;
|
;
|
||||||
I1 is (Index+1) mod Size,
|
I1 is (Index+1) mod Size,
|
||||||
find_or_insert(Keys, I1, Size, N, CmpF, Vals, Key, NewVal, Hash, NewHash)
|
find_or_insert(Keys, I1, Size, N, CmpF, Vals, Key, NewVal, Hash, NewHash)
|
||||||
|
Reference in New Issue
Block a user