diff --git a/src/base/files/file_util_linux.cc b/src/base/files/file_util_linux.cc index 66da9b8fd3..0e5c5a4889 100644 --- a/src/base/files/file_util_linux.cc +++ b/src/base/files/file_util_linux.cc @@ -23,7 +23,7 @@ bool GetFileSystemType(const FilePath& path, FileSystemType* type) { // Not all possible |statfs_buf.f_type| values are in linux/magic.h. // Missing values are copied from the statfs man page. - switch (statfs_buf.f_type) { + switch (static_cast(statfs_buf.f_type)) { case 0: *type = FILE_SYSTEM_0; break; diff --git a/src/base/system/sys_info_posix.cc b/src/base/system/sys_info_posix.cc index 6e407535ea..ea3fa736bc 100644 --- a/src/base/system/sys_info_posix.cc +++ b/src/base/system/sys_info_posix.cc @@ -67,7 +67,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):