Browse Source

Merge pull request #108661 from bruvzg/nix32

[Linux] Fix narrowing conversion error in 32-bit builds.
Thaddeus Crews 1 month ago
parent
commit
68495871b0
1 changed files with 1 additions and 1 deletions
  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) {
 	if (statfs(current_dir.utf8().get_data(), &fs) != 0) {
 		return "";
 		return "";
 	}
 	}
-	switch (fs.f_type) {
+	switch (static_cast<unsigned int>(fs.f_type)) {
 		case 0x0000adf5:
 		case 0x0000adf5:
 			return "ADFS";
 			return "ADFS";
 		case 0x0000adff:
 		case 0x0000adff: