summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-22 00:55:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-22 00:55:56 -0700
commitdf91114e4eb29e70c982bffa3526a857b0577a64 (patch)
tree682ecb554eceb247546529cb522edd0bc9d09b83
parent97d33f4725784e2e98936327e59bb878463965f2 (diff)
downloadtxr-df91114e4eb29e70c982bffa3526a857b0577a64.tar.gz
txr-df91114e4eb29e70c982bffa3526a857b0577a64.tar.bz2
txr-df91114e4eb29e70c982bffa3526a857b0577a64.zip
compiler: sys:setq bug: wrong way mov.
* share/txr/stdlib/compiler.tl (compiler comp-setq): Fix reversed mov instruction arguments in lexical case.
-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 05ba8247..e6f7acda 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -213,7 +213,7 @@
(new (frag vloc
^(,*vfrag.code
,*(if bind
- (maybe-mov vfrag.oreg vloc)
+ (maybe-mov vloc vfrag.oreg)
^((setv ,vloc ,vfrag.oreg))))
(uni (list sym) vfrag.fvars)
vfrag.ffuns)))))