mirror of
https://github.com/openharmony/third_party_rust_libloading.git
synced 2026-07-21 00:26:36 -04:00
Fix windows build
This commit is contained in:
@@ -171,7 +171,7 @@ where F: FnOnce() -> Option<T> {
|
||||
if error == 0 {
|
||||
None
|
||||
} else {
|
||||
Some(::std::io::Error::from_raw_os_error(error))
|
||||
Some(::std::io::Error::from_raw_os_error(error as i32))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user