Showing with 1 addition and 1 deletion.
  1. +1 −1 std/math.d
2 changes: 1 addition & 1 deletion std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -5140,7 +5140,7 @@ bool isInfinity(X)(X x) @nogc @trusted pure nothrow
}
else
{
return (x - 1) == x;
return (x < -X.max) || (X.max < x);
}
}

Expand Down