projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72391a
)
Fix variable-arity multiplication and so read-float
author
David Vázquez
<davazp@gmail.com>
Sat, 31 Aug 2013 00:13:10 +0000
(
02:13
+0200)
committer
David Vázquez
<davazp@gmail.com>
Sat, 31 Aug 2013 00:13:10 +0000
(
02:13
+0200)
src/compiler/codegen.lisp
patch
|
blob
|
history
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))
+ (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)