mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-23 22:06:12 +03:00
base: Fix narrowing casting for Musl
This commit is contained in:
parent
53e903555f
commit
c883d8bf7f
@ -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<int>(statfs_buf.f_type)) {
|
||||
case 0:
|
||||
*type = FILE_SYSTEM_0;
|
||||
break;
|
||||
|
@ -100,7 +100,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<int>(stats.f_type)) {
|
||||
case TMPFS_MAGIC:
|
||||
case static_cast<int>(HUGETLBFS_MAGIC):
|
||||
case static_cast<int>(RAMFS_MAGIC):
|
||||
|
Loading…
Reference in New Issue
Block a user