1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibM: Fix INFITITY to float

POSIX mandates it.
This commit is contained in:
Jean-Baptiste Boric 2021-04-26 19:11:11 +02:00 committed by Linus Groh
parent 8d95bd8418
commit 91def742a4
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ static String double_to_string(double d)
builder.append(double_to_string(-d));
return builder.to_string();
}
if (d == INFINITY)
if (d == static_cast<double>(INFINITY))
return "Infinity";
StringBuilder number_string_builder;