diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-04-26 19:11:11 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-04-27 23:06:16 +0200 |
commit | 91def742a4ee6561087b9ae9601275c48b5b7c4c (patch) | |
tree | f409d7605a85fff58d1162c38a000d4275c26a51 /Userland/Libraries/LibJS/Runtime/Value.cpp | |
parent | 8d95bd84183ee4b8658705ad4b9b197caf5ac4f2 (diff) | |
download | serenity-91def742a4ee6561087b9ae9601275c48b5b7c4c.zip |
LibM: Fix INFITITY to float
POSIX mandates it.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.cpp b/Userland/Libraries/LibJS/Runtime/Value.cpp index 251f81927c..98a8c0eec2 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.cpp +++ b/Userland/Libraries/LibJS/Runtime/Value.cpp @@ -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; |