Skip to content

Commit a83034e

Browse files
author
Siva Chandra Reddy
committed
[libc][Obvious] Compare values of the same type in memory_utils/backend_test.
1 parent bcdd9fb commit a83034e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ TYPED_TEST(LlvmLibcMemoryBackend, splat, FunctionTypes) {
9393

9494
TYPED_TEST(LlvmLibcMemoryBackend, notEquals, FunctionTypes) {
9595
alignas(64) const auto a = GetRandomBuffer<ParamType::SIZE>();
96-
EXPECT_EQ(ParamType::notEquals(a, a), 0UL);
96+
EXPECT_EQ(ParamType::notEquals(a, a), uint64_t(0));
9797
for (size_t i = 0; i < a.size(); ++i) {
9898
alignas(64) auto b = a;
9999
++b[i];
100-
EXPECT_NE(ParamType::notEquals(a, b), 0UL);
101-
EXPECT_NE(ParamType::notEquals(b, a), 0UL);
100+
EXPECT_NE(ParamType::notEquals(a, b), uint64_t(0));
101+
EXPECT_NE(ParamType::notEquals(b, a), uint64_t(0));
102102
}
103103
}
104104

0 commit comments

Comments
 (0)