mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #97, signed/unsigned warning in test
This commit is contained in:
parent
57f3186ee2
commit
31ea91b7bd
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user