projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix variable-arity multiplication and so read-float
[jscl.git]
/
src
/
compiler
/
codegen.lisp
diff --git
a/src/compiler/codegen.lisp
b/src/compiler/codegen.lisp
index
b32e837
..
5247e52
100644
(file)
--- a/
src/compiler/codegen.lisp
+++ b/
src/compiler/codegen.lisp
@@
-201,6
+201,10
@@
(case (length (cdr form))
(1 `(unary- ,(cadr form)))
(t (reduce (lambda (x y) `(- ,x ,y)) (cdr form)))))
(case (length (cdr form))
(1 `(unary- ,(cadr form)))
(t (reduce (lambda (x y) `(- ,x ,y)) (cdr form)))))
+ (*
+ (case (length (cdr form))
+ (0 1)
+ (t (reduce (lambda (x y) `(* ,x ,y)) (cdr form)))))
((and or)
(reduce (lambda (x y) `(,(car form) ,x ,y)) (cdr form)))
((progn comma)
((and or)
(reduce (lambda (x y) `(,(car form) ,x ,y)) (cdr form)))
((progn comma)