Remove the u64 cast from WSL DrvFS detection (#56214)

GitOrigin-RevId: 9298584c88089222fe61209b76641fa970555e1f
This commit is contained in:
felixxia-oai
2026-10-22 16:46:42 +00:00
committed by copyberry
parent a390571745
commit be537fb60c
+1 -1
View File
@@ -39,7 +39,7 @@ pub fn uses_wsl_drvfs(codex_home: &std::path::Path) -> bool {
if unsafe { libc::fstatfs(directory.as_raw_fd(), stats.as_mut_ptr()) } != 0 {
return false;
}
unsafe { stats.assume_init() }.f_type as u64 == 0x0102_1997
unsafe { stats.assume_init() }.f_type == 0x0102_1997
}
#[cfg(not(target_os = "linux"))]
{