base: Fix narrowing casting for Musl

This commit is contained in:
klzgrad 2023-01-11 19:40:46 +08:00
parent 18c1ac9982
commit 49e1be1ae8

View File

@ -62,7 +62,7 @@ bool IsStatsZeroIfUnlimited(const base::FilePath& path) {
if (HANDLE_EINTR(statfs(path.value().c_str(), &stats)) != 0) if (HANDLE_EINTR(statfs(path.value().c_str(), &stats)) != 0)
return false; return false;
switch (stats.f_type) { switch (static_cast<int>(stats.f_type)) {
case TMPFS_MAGIC: case TMPFS_MAGIC:
case static_cast<int>(HUGETLBFS_MAGIC): case static_cast<int>(HUGETLBFS_MAGIC):
case static_cast<int>(RAMFS_MAGIC): case static_cast<int>(RAMFS_MAGIC):