[libc-commits] [libc] a83034e - [libc][Obvious] Compare values of the same type in memory_utils/backend_test.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Fri Jun 24 21:53:16 PDT 2022


Author: Siva Chandra Reddy
Date: 2022-06-25T04:50:04Z
New Revision: a83034ef2b3d6ac17eade53a69387add5e4ddbc7

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

LOG: [libc][Obvious] Compare values of the same type in memory_utils/backend_test.

Added: 
    

Modified: 
    libc/test/src/string/memory_utils/backend_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/src/string/memory_utils/backend_test.cpp b/libc/test/src/string/memory_utils/backend_test.cpp
index 27418b7c9933..f4ffe9c691e3 100644
--- a/libc/test/src/string/memory_utils/backend_test.cpp
+++ b/libc/test/src/string/memory_utils/backend_test.cpp
@@ -93,12 +93,12 @@ TYPED_TEST(LlvmLibcMemoryBackend, splat, FunctionTypes) {
 
 TYPED_TEST(LlvmLibcMemoryBackend, notEquals, FunctionTypes) {
   alignas(64) const auto a = GetRandomBuffer<ParamType::SIZE>();
-  EXPECT_EQ(ParamType::notEquals(a, a), 0UL);
+  EXPECT_EQ(ParamType::notEquals(a, a), uint64_t(0));
   for (size_t i = 0; i < a.size(); ++i) {
     alignas(64) auto b = a;
     ++b[i];
-    EXPECT_NE(ParamType::notEquals(a, b), 0UL);
-    EXPECT_NE(ParamType::notEquals(b, a), 0UL);
+    EXPECT_NE(ParamType::notEquals(a, b), uint64_t(0));
+    EXPECT_NE(ParamType::notEquals(b, a), uint64_t(0));
   }
 }
 


        


More information about the libc-commits mailing list