Skip to content

Commit

Permalink
fixed files form Math #59
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 1d793b3 commit a70ef92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a70ef92

Please sign in to comment.