mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
LibM: Fix INFITITY to float
POSIX mandates it.
This commit is contained in:
parent
8d95bd8418
commit
91def742a4
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));
|
builder.append(double_to_string(-d));
|
||||||
return builder.to_string();
|
return builder.to_string();
|
||||||
}
|
}
|
||||||
if (d == INFINITY)
|
if (d == static_cast<double>(INFINITY))
|
||||||
return "Infinity";
|
return "Infinity";
|
||||||
|
|
||||||
StringBuilder number_string_builder;
|
StringBuilder number_string_builder;
|
||||||
|
|
|
@ -25,7 +25,7 @@ __BEGIN_DECLS
|
||||||
#define HUGE_VALF __builtin_huge_valf()
|
#define HUGE_VALF __builtin_huge_valf()
|
||||||
#define HUGE_VAL __builtin_huge_val()
|
#define HUGE_VAL __builtin_huge_val()
|
||||||
#define HUGE_VALL __builtin_huge_vall()
|
#define HUGE_VALL __builtin_huge_vall()
|
||||||
#define INFINITY __builtin_huge_val()
|
#define INFINITY __builtin_huge_valf()
|
||||||
#define NAN __builtin_nan("")
|
#define NAN __builtin_nan("")
|
||||||
#define MAXFLOAT FLT_MAX
|
#define MAXFLOAT FLT_MAX
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue