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