[libc-commits] [libc] [libc][math] fix failing nanl_test build (PR #77102)

Nishant Mittal via libc-commits libc-commits at lists.llvm.org
Fri Jan 5 06:48:06 PST 2024


https://github.com/nishantwrp created https://github.com/llvm/llvm-project/pull/77102

None

>From da1a5fbddc5d1fdfa4f6469050bc4a2a35275041 Mon Sep 17 00:00:00 2001
From: Nishant Mittal <nishantwrp at google.com>
Date: Fri, 5 Jan 2024 14:47:12 +0000
Subject: [PATCH] [libc][math] fix failing nanl_test build

---
 libc/test/src/math/smoke/nanl_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/test/src/math/smoke/nanl_test.cpp b/libc/test/src/math/smoke/nanl_test.cpp
index c0e95401611294..0a57b567916c9a 100644
--- a/libc/test/src/math/smoke/nanl_test.cpp
+++ b/libc/test/src/math/smoke/nanl_test.cpp
@@ -28,7 +28,7 @@ class LlvmLibcNanlTest : public LIBC_NAMESPACE::testing::Test {
     long double result = LIBC_NAMESPACE::nanl(input_str);
     auto actual_fp = LIBC_NAMESPACE::fputil::FPBits<long double>(result);
     auto expected_fp = LIBC_NAMESPACE::fputil::FPBits<long double>(bits);
-    EXPECT_EQ(actual_fp.bits, expected_fp.bits);
+    EXPECT_EQ(actual_fp.uintval(), expected_fp.uintval());
   };
 };
 



More information about the libc-commits mailing list