[movitz-cvs] CVS update: movitz/losp/muerte/integers.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Tue Oct 12 14:44:06 UTC 2004


Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv26225

Modified Files:
	integers.lisp 
Log Message:
Fixed incredibly stupid bug in ratio multiplication.

Date: Tue Oct 12 16:43:56 2004
Author: ffjeld

Index: movitz/losp/muerte/integers.lisp
diff -u movitz/losp/muerte/integers.lisp:1.99 movitz/losp/muerte/integers.lisp:1.100
--- movitz/losp/muerte/integers.lisp:1.99	Tue Oct 12 12:51:47 2004
+++ movitz/losp/muerte/integers.lisp	Tue Oct 12 16:43:55 2004
@@ -9,7 +9,7 @@
 ;;;; Created at:    Wed Nov  8 18:44:57 2000
 ;;;; Distribution:  See the accompanying file COPYING.
 ;;;;                
-;;;; $Id: integers.lisp,v 1.99 2004/10/12 10:51:47 ffjeld Exp $
+;;;; $Id: integers.lisp,v 1.100 2004/10/12 14:43:55 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -1152,7 +1152,7 @@
 		     (incf r (ash (* x (ldb (byte 29 i) y)) i)))))
 		((ratio ratio)
 		 (make-rational (* (ratio-numerator x) (ratio-numerator y))
-				(* (ratio-denominator x) (ratio-denominator x))))
+				(* (ratio-denominator x) (ratio-denominator y))))
 		((ratio t)
 		 (make-rational (* y (ratio-numerator x))
 				(ratio-denominator x)))





More information about the Movitz-cvs mailing list