ifix case where we lose hash table output.

This commit is contained in:
Vítor Santos Costa 2012-03-22 12:07:38 +00:00
parent c85e76f20f
commit 7b84608e5e

View File

@ -105,7 +105,8 @@ find_or_insert(Keys, Index, Size, N, CmpF, Vals, Key, NewVal, Hash, NewHash) :-
->
% do rb_update
array_element(Vals, Index, Mutable),
update_mutable(NewVal, Mutable)
update_mutable(NewVal, Mutable),
Hash = NewHash
;
I1 is (Index+1) mod Size,
find_or_insert(Keys, I1, Size, N, CmpF, Vals, Key, NewVal, Hash, NewHash)