mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibM: Fix INFITITY to float
POSIX mandates it.
This commit is contained in:
parent
8d95bd8418
commit
91def742a4
Notes:
sideshowbarker
2024-07-18 19:01:00 +09:00
Author: https://github.com/boricj
Commit: 91def742a4
Pull-request: https://github.com/SerenityOS/serenity/pull/6671
Reviewed-by: https://github.com/linusg
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue