Merge pull request #10 from Kvasscn/fix-type-i8-compile-error-in-aarch64

lib: fix compiling error for type i8 in aarch64 environment
This commit is contained in:
Fupan Li
2020-09-22 10:36:14 +08:00
committed by GitHub

View File

@@ -766,7 +766,7 @@ pub fn nested_keyed_to_hashmap(mut file: File) -> Result<HashMap<String, HashMap
/// with error: `Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }`
pub fn libc_rmdir(p: &str) {
// with int return value
let _ = unsafe { libc::rmdir(p.as_ptr() as *const i8) };
let _ = unsafe { libc::rmdir(p.as_ptr() as *const libc::c_char) };
}
/// read and parse an i64 data