summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-06-22 06:46:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-06-22 06:46:05 -0700
commitf8ef662498ee2be2500a07f1cf4701b990f281c3 (patch)
tree4bd74fd250c998db24aa8491dfa13b4ab0c53dbf
parent6b456fd35c9a917a0a7116094c9c441b4d1400d1 (diff)
downloadtxr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index cc1b161f..d6e3d7a5 100644
--- a/hash.c
+++ b/hash.c
@@ -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;
}
}