From 49e1be1ae8b44aa117c2a6ce322591c4f109883b Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 11 Jan 2023 19:40:46 +0800 Subject: [PATCH] base: Fix narrowing casting for Musl --- src/base/system/sys_info_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/system/sys_info_posix.cc b/src/base/system/sys_info_posix.cc index dbf9947723..f6926b0bc8 100644 --- a/src/base/system/sys_info_posix.cc +++ b/src/base/system/sys_info_posix.cc @@ -62,7 +62,7 @@ bool IsStatsZeroIfUnlimited(const base::FilePath& path) { if (HANDLE_EINTR(statfs(path.value().c_str(), &stats)) != 0) return false; - switch (stats.f_type) { + switch (static_cast(stats.f_type)) { case TMPFS_MAGIC: case static_cast(HUGETLBFS_MAGIC): case static_cast(RAMFS_MAGIC):