Chromium Code Reviews| Index: base/files/file_util_linux.cc |
| diff --git a/base/files/file_util_linux.cc b/base/files/file_util_linux.cc |
| index b230fd96484c7d8e75f408edc912019d60ffb728..7999392faf5226a7e7e2cc5540e22e42f6f4d153 100644 |
| --- a/base/files/file_util_linux.cc |
| +++ b/base/files/file_util_linux.cc |
| @@ -6,6 +6,7 @@ |
| #include <errno.h> |
| #include <linux/magic.h> |
| +#include <stdint.h> |
| #include <sys/vfs.h> |
| #include "base/files/file_path.h" |
| @@ -23,7 +24,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<uintmax_t>(statfs_buf.f_type)) { |
|
danakj
2016/05/23 02:59:54
Why is this needed?
Luis Héctor Chávez
2016/05/24 15:27:52
Added a comment.
|
| case 0: |
| *type = FILE_SYSTEM_0; |
| break; |