summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-24 17:45:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-24 17:45:09 -0700
commit391e452d897e272a70b81c784398d30f64d1d5a4 (patch)
tree830a10762ff2461ac9a05abb04e10cf85b3ccd6c
parenta58c642f9fe4d364c6b23f312ee9e8a2066bea1c (diff)
downloadtxr-391e452d897e272a70b81c784398d30f64d1d5a4.tar.gz
txr-391e452d897e272a70b81c784398d30f64d1d5a4.tar.bz2
txr-391e452d897e272a70b81c784398d30f64d1d5a4.zip
compiler: fix lexical function call.
* share/txr/stdlib/compiler.tl (compiler comp-call): Pass the location, not the binding itself, to comp-call-impl.
-rw-r--r--share/txr/stdlib/compiler.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index 403263ce..f7f23039 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -610,8 +610,8 @@
(defmeth compiler comp-call (me oreg env sym args)
(condlet
- (((freg env.(lookup-fun sym)))
- me.(comp-call-impl oreg env 'call freg args))
+ (((fbind env.(lookup-fun sym)))
+ me.(comp-call-impl oreg env 'call fbind.loc args))
(((fidx me.(get-fidx sym)))
me.(comp-call-impl oreg env 'gcall fidx args))))