diff --git a/libc/test/src/string/strlcpy_test.cpp b/libc/test/src/string/strlcpy_test.cpp --- a/libc/test/src/string/strlcpy_test.cpp +++ b/libc/test/src/string/strlcpy_test.cpp @@ -13,17 +13,17 @@ TEST(LlvmLibcStrlcpyTest, TooBig) { const char *str = "abc"; char buf[2]; - EXPECT_EQ(__llvm_libc::strlcpy(buf, str, 2), 3ul); + EXPECT_EQ(__llvm_libc::strlcpy(buf, str, 2), size_t(3)); EXPECT_STREQ(buf, "a"); - EXPECT_EQ(__llvm_libc::strlcpy(nullptr, str, 0), 3ul); + EXPECT_EQ(__llvm_libc::strlcpy(nullptr, str, 0), size_t(3)); } TEST(LlvmLibcStrlcpyTest, Smaller) { const char *str = "abc"; char buf[7]{"111111"}; - EXPECT_EQ(__llvm_libc::strlcpy(buf, str, 7), 3ul); + EXPECT_EQ(__llvm_libc::strlcpy(buf, str, 7), size_t(3)); EXPECT_STREQ(buf, "abc"); for (const char *p = buf + 3; p < buf + 7; p++) EXPECT_EQ(*p, '\0');