fix emission of meta procedures
authorAndy Wingo <wingo@pobox.com>
Thu, 10 Dec 2009 19:26:54 +0000 (20:26 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 10 Dec 2009 19:26:54 +0000 (20:26 +0100)
* module/language/glil/compile-assembly.scm: Fix the check for when to
  emit a "meta" procedure. Fixes
  http://thread.gmane.org/gmane.lisp.guile.user/7469/focus=7470.

module/language/glil/compile-assembly.scm

index 490d1a4..32c5a9d 100644 (file)
@@ -69,7 +69,9 @@
             (lp (cdr in) out filename)))))))
 
 (define (make-meta bindings sources arities tail)
-  (if (and (null? bindings) (null? sources) (null? tail))
+  ;; sounds silly, but the only case in which we have no arities is when
+  ;; compiling a meta procedure.
+  (if (and (null? bindings) (null? sources) (null? arities) (null? tail))
       #f
       (compile-assembly
        (make-glil-program '()