소스 검색

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

Pāvels Nadtočajevs 2 달 전
부모
커밋
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: