From a70ef92641b0d81b27ea1c99403fc47e96a79f56 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:17:29 +0100 Subject: [PATCH] fixed files form Math #59 --- projects/Math/59/org/apache/commons/math/util/FastMath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/Math/59/org/apache/commons/math/util/FastMath.java b/projects/Math/59/org/apache/commons/math/util/FastMath.java index 8cba4d4..4f7d447 100644 --- a/projects/Math/59/org/apache/commons/math/util/FastMath.java +++ b/projects/Math/59/org/apache/commons/math/util/FastMath.java @@ -3479,7 +3479,7 @@ public static long max(final long a, final long b) { * @return b if a is lesser or equal to b, a otherwise */ public static float max(final float a, final float b) { - return (a <= b) ? b : (Float.isNaN(a + b) ? Float.NaN : b); + return (a <= b) ? b : (Float.isNaN(a + b) ? Float.NaN : a); } /** Compute the maximum of two values