summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/llstring_test.cpp
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-11-02 13:20:01 -0500
committerRye <rye@alchemyviewer.org>2025-11-02 21:40:05 -0500
commitd2e80039df1712734a6e3b0d811d73f850345157 (patch)
tree855bb8f1470a7bd1d0f46065a63f2bec6aa70867 /indra/llcommon/tests/llstring_test.cpp
parenteaafd499ca026157570e9cbd83ef4bb44dd4593b (diff)
Fix building with clang on non-darwin platforms
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llcommon/tests/llstring_test.cpp')
-rw-r--r--indra/llcommon/tests/llstring_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp
index b18712b8e9..f4366b2059 100644
--- a/indra/llcommon/tests/llstring_test.cpp
+++ b/indra/llcommon/tests/llstring_test.cpp
@@ -377,7 +377,7 @@ namespace tut
{
F32 value;
std::string str_val("2147483647"); //0x7FFFFFFF
- ensure("1: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 2147483647);
+ ensure("1: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 2147483647.f);
str_val = "0";
ensure("2: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 0);
@@ -399,7 +399,7 @@ namespace tut
{
F64 value;
std::string str_val("9223372036854775807"); //0x7FFFFFFFFFFFFFFF
- ensure("1: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 9223372036854775807LL);
+ ensure("1: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 9223372036854775807.0);
str_val = "0";
ensure("2: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 0.0F);