Fix case bug in `complex:expt'.
authorHal Abelson <edu/mit/hal>
Wed, 10 Jan 1990 23:19:57 +0000 (23:19 +0000)
committerHal Abelson <edu/mit/hal>
Wed, 10 Jan 1990 23:19:57 +0000 (23:19 +0000)
v7/src/runtime/arith.scm

index d6ddb37842bbfb91264556ddd2129291e94821c3..66e6969c439948bf6529fb35b14eb92fae89f96a 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/arith.scm,v 1.11 1989/12/29 19:19:12 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/arith.scm,v 1.12 1990/01/10 23:19:57 hal Exp $
 
 Copyright (c) 1989 Massachusetts Institute of Technology
 
@@ -1432,9 +1432,9 @@ MIT in each case. |#
   (let ((general-case
         (lambda ()
           (complex:exp (complex:* (complex:log z1) z2)))))
-    (cond ((and (recnum? z1)
-               (rec:exact? z1))
-          (if (int:integer? z2)
+    (cond ((recnum? z1)
+          (if (and (rec:exact? z1)
+                   (int:integer? z2))
               (let ((exact-method
                      (lambda (z2)
                        (if (int:= 1 z2)