diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-06-22 06:46:05 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-06-22 06:46:05 -0700 |
commit | f8ef662498ee2be2500a07f1cf4701b990f281c3 (patch) | |
tree | 4bd74fd250c998db24aa8491dfa13b4ab0c53dbf | |
parent | 6b456fd35c9a917a0a7116094c9c441b4d1400d1 (diff) | |
download | txr-f8ef662498ee2be2500a07f1cf4701b990f281c3.tar.gz txr-f8ef662498ee2be2500a07f1cf4701b990f281c3.tar.bz2 txr-f8ef662498ee2be2500a07f1cf4701b990f281c3.zip |
hash: fix broken equality-of-two-hashes test.
* hash.c (hash_equal_op): Fix broken logic that is supposed to
push a cell onto the pending list: rplaca should be rplacd.
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -345,7 +345,7 @@ static val hash_equal_op(val left, val right) } else { ncons = or2(pop(&free_conses), cons(nil, nil)); rplaca(ncons, lcell); - rplaca(ncons, pending); + rplacd(ncons, pending); pending = ncons; } @@ -364,7 +364,7 @@ static val hash_equal_op(val left, val right) } else { ncons = or2(pop(&free_conses), cons(nil, nil)); rplaca(ncons, rcell); - rplaca(ncons, pending); + rplacd(ncons, pending); pending = ncons; } } |