summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-23 21:27:20 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-23 21:27:20 -0800
commit21ecebc20e45132bd1c78fd5392b5f6523e4c9e6 (patch)
tree8ddf3b2db5597bf9f96f6ed9680752e177cd7bc0 /eval.c
parent094df64b6c3362f01f44d108f0d5fa4c102341b8 (diff)
downloadtxr-21ecebc20e45132bd1c78fd5392b5f6523e4c9e6.tar.gz
txr-21ecebc20e45132bd1c78fd5392b5f6523e4c9e6.tar.bz2
txr-21ecebc20e45132bd1c78fd5392b5f6523e4c9e6.zip
* eval.c (expand): Bugfix in expansion of dohash: neglected
to insert result form into the expanded output.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 3e2d9821..41ebd8bc 100644
--- a/eval.c
+++ b/eval.c
@@ -1784,7 +1784,9 @@ val expand(val form)
if (hashform == hashform_ex && resform == resform_ex && body == body_ex)
return form;
return cons(sym, cons(cons(keysym,
- cons(valsym, cons(hashform_ex, nil))),
+ cons(valsym,
+ cons(hashform_ex,
+ cons(resform_ex, nil)))),
body_ex));
} else if (sym == quasi_s) {
val quasi = rest(form);