8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 04:43:03 +01:00

Fixed CORE-5570 - Negative infinity (double) shown incorrectly without sign in isql.

This commit is contained in:
Adriano dos Santos Fernandes 2017-07-18 18:25:17 +00:00
parent fd03822796
commit 63080abc1e

View File

@ -6894,7 +6894,7 @@ static bool checkSpecial(TEXT* const p, const int length, const double value)
if (isnan(value))
t = "NaN";
else if (isinf(value))
t = "Infinity";
t = value == -INFINITY ? "-Infinity" : "Infinity";
else
return false;