diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-04 23:29:08 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-04 23:29:08 -0700 |
commit | df88f98aeed87b85ac401549137bac1452a36088 (patch) | |
tree | f6f5b849b8d8b32adc31e1ae1c31bcdafabca694 | |
parent | 3d630a8d5d9760f0328e4661c97bafdfb674f19a (diff) | |
download | txr-df88f98aeed87b85ac401549137bac1452a36088.tar.gz txr-df88f98aeed87b85ac401549137bac1452a36088.tar.bz2 txr-df88f98aeed87b85ac401549137bac1452a36088.zip |
hash: with-hash-iter bug found by new compiler.
The compiler barfed on hash.tl, reporting an if form with too
many arguments in the with-hash-iter macro, indicating that
it's basically broken.
* share/txr/stdlib/hash.tl (with-hash-iter): Repair the macro.
-rw-r--r-- | share/txr/stdlib/hash.tl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/hash.tl b/share/txr/stdlib/hash.tl index 2b382683..fe71e194 100644 --- a/share/txr/stdlib/hash.tl +++ b/share/txr/stdlib/hash.tl @@ -37,6 +37,6 @@ ^(hash-next ,iter) ^(let ((,next (hash-next ,iter))) ,*(if key ^((set ,key (car ,next)))) - ,*(if val ^((set ,val (cdr ,next))))) - ,next))) + ,*(if val ^((set ,val (cdr ,next)))) + ,next)))) ,*body)))) |