summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-27 16:26:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-03-27 16:26:05 -0700
commitdaef03f6b7f5c283d27053ba4845858fe1a8f7ce (patch)
treef2c76687acd12c25cefb9ab803e70161409ccd24
parent987261d88bcd24f22919d1cfaf46b4e0b7074eef (diff)
downloadtxr-daef03f6b7f5c283d27053ba4845858fe1a8f7ce.tar.gz
txr-daef03f6b7f5c283d27053ba4845858fe1a8f7ce.tar.bz2
txr-daef03f6b7f5c283d27053ba4845858fe1a8f7ce.zip
compiler: bugfix: bad expand-quasi-mods call.
* share/txr/stdlib/compiler.tl (expand-quasi-args): Here, expand-quasi-mods is being called with the wrong number of arguments. This was likely intended to be a recursive call to expand-quasi-args. Let's convert it to that. Removing this case also works, but it is nicer not to generate the sys:fmt-simple call.
-rw-r--r--share/txr/stdlib/compiler.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index 9a756107..39cda32d 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -1795,7 +1795,7 @@
(caseq (car el)
(sys:var (mac-param-bind form (sym exp : mods) el
(list (expand-quasi-mods exp mods))))
- (sys:quasi (expand-quasi-mods el))
+ (sys:quasi (expand-quasi-args el))
(t (list ^(sys:fmt-simple ,el)))))
((bindable el)
(list ^(sys:fmt-simple ,el)))