summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-23 06:17:03 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-23 06:17:03 -0700
commit85470b5eda95a0ca153caab7b1c03afd3d69a3f6 (patch)
tree55a172585db13db5876b860e219a95b2d0576ee2
parentdb6b4ced150ef699f004c05a8a668a724caa3160 (diff)
downloadtxr-85470b5eda95a0ca153caab7b1c03afd3d69a3f6.tar.gz
txr-85470b5eda95a0ca153caab7b1c03afd3d69a3f6.tar.bz2
txr-85470b5eda95a0ca153caab7b1c03afd3d69a3f6.zip
compiler: unnecessary let*.
* share/txr/stdlib/compiler.tl (compiler get-dreg): A let* with just one variable in it is changed to let.
-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 087e9848..2a9f165c 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -174,7 +174,7 @@
((((null atom))) '(t 0))
(((dreg [me.dreg atom])) dreg)
((((< me.dreg-cntr %lev-size%)))
- (let* ((dreg ^(d ,(pinc me.dreg-cntr))))
+ (let ((dreg ^(d ,(pinc me.dreg-cntr))))
(set [me.data (cadr dreg)] atom)
(set [me.dreg atom] dreg)))
(t (compile-error me.last-form "code too complex: out of registers"))))