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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Nishant Mittal (nishantwrp)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/77102.diff


1 Files Affected:

- (modified) libc/test/src/math/smoke/nanl_test.cpp (+1-1) 


``````````diff
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());
   };
 };
 

``````````

</details>


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


More information about the libc-commits mailing list