Permalink
Browse files

Fixed duplicate check of numerator in ratio sqrt.

Reported by Olivier Miel
  • Loading branch information...
1 parent faa0dcf commit d40bd9e87e4568588c839cc1fd141be35081b4f7 @Engelberg Engelberg committed Dec 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/clojure/clojure/math/numeric_tower.clj
@@ -234,7 +234,7 @@ For example, (exact-integer-sqrt 15) is [3 6] because 15 = 3^2+6."
(if (float? sqrtnum)
(Math/sqrt n)
(let [sqrtden (sqrt denominator)]
- (if (float? sqrtnum)
+ (if (float? sqrtden)
(Math/sqrt n)
(/ sqrtnum sqrtden)))))))

0 comments on commit d40bd9e

Please sign in to comment.