From 8c91ae59f97200208962d845dbe972ad7c3cda3c Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 10 Dec 2010 19:08:25 +0100 Subject: lua code returning via normal path * module/language/lua/compile-tree-il.scm (compile): Get more lua code returning via the normal path. --- module/language/lua/compile-tree-il.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/language/lua/compile-tree-il.scm b/module/language/lua/compile-tree-il.scm index 47282334c..1cbd31882 100644 --- a/module/language/lua/compile-tree-il.scm +++ b/module/language/lua/compile-tree-il.scm @@ -132,10 +132,10 @@ dropped silently" ((ast-return src exp) (if tail? - (if (list? exp) + (if (and (list? exp) (not (= (length exp) 1))) (make-application src (make-primitive-ref src 'values) (map-compile exp)) - (compile exp #t)) + (compile (if (list? exp) (car exp) exp) #t)) (make-application src (make-primitive-ref src 'return/values) (if (list? exp) (map-compile exp #t) (list (compile exp)))))) -- cgit v1.2.3