浏览代码

[Linux] Fix narrowing conversion error in 32-bit builds.

Pāvels Nadtočajevs 1 月之前
父节点
当前提交
80b39cd1bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/unix/dir_access_unix.cpp

+ 1 - 1
drivers/unix/dir_access_unix.cpp

@@ -524,7 +524,7 @@ String DirAccessUnix::get_filesystem_type() const {
 	if (statfs(current_dir.utf8().get_data(), &fs) != 0) {
 		return "";
 	}
-	switch (fs.f_type) {
+	switch (static_cast<unsigned int>(fs.f_type)) {
 		case 0x0000adf5:
 			return "ADFS";
 		case 0x0000adff: