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

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


Author: Nishant Mittal
Date: 2024-01-05T09:49:51-05:00
New Revision: 736cc0cbf0107f6a1678a5495e1931733ab57393

URL: https://github.com/llvm/llvm-project/commit/736cc0cbf0107f6a1678a5495e1931733ab57393
DIFF: https://github.com/llvm/llvm-project/commit/736cc0cbf0107f6a1678a5495e1931733ab57393.diff

LOG: [libc][math] fix failing nanl_test build (#77102)

Added: 
    

Modified: 
    libc/test/src/math/smoke/nanl_test.cpp

Removed: 
    


################################################################################
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