aboutsummaryrefslogtreecommitdiffstats
path: root/lib/csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-08-07 15:54:48 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-08-07 15:54:48 -0700
commit72294a6a1a690d396d13a7e3861f4b720e78cdb3 (patch)
tree64f7e914f1326b817f0ae36b0a995806a8551a14 /lib/csc
parent49e0ce47d4fdd3f41dde1e376977d545fc8c542e (diff)
downloadchromatopelma-72294a6a1a690d396d13a7e3861f4b720e78cdb3.tar.zst
Fix a bug in expand-body for an empty body.
Diffstat (limited to 'lib/csc')
-rw-r--r--lib/csc/macros.csc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csc/macros.csc b/lib/csc/macros.csc
index fc72f74..4463f91 100644
--- a/lib/csc/macros.csc
+++ b/lib/csc/macros.csc
@@ -839,7 +839,8 @@
(define environment (make-environment ident-map name))
(loop for expr in body
for expanded-expr = (expand expr environment)
- for res = expanded-expr then (make-sequence res expanded-expr)
+ with res = (make-constant #f)
+ do (set! res (make-sequence res expanded-expr))
finally (return res)
if (define-syntax? expanded-expr)
do (set! environment