diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index e5308a5..81a4d23 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -2024,7 +2024,7 @@ static uintmax_t getHardlinkCount(const fs::path& p) { struct stat st = {}; auto rc = ::lstat(p.c_str(), &st); - return rc == 0 ? st.st_nlink : ~0; + return rc == 0 ? st.st_nlink : ~0u; } #endif