Print the right sign on infinities

This commit is contained in:
baldurk
2017-08-29 13:19:47 +01:00
parent 8739c39f08
commit ed0c5650af
+1 -1
View File
@@ -482,7 +482,7 @@ void PrintFloat(double argd, FormatterParams &formatter, bool e, bool f, bool g,
if(signbit)
appendstring(output, actualsize, end, uppercaseDigits ? "-INF" : "-inf");
else
appendstring(output, actualsize, end, uppercaseDigits ? "+INF" : "-inf");
appendstring(output, actualsize, end, uppercaseDigits ? "+INF" : "+inf");
}
else
{