Minor But Important Change

- i8 changed to c_char to improve the compatibility between different Rust targets
This commit is contained in:
*Nix Fanboy
2024-10-25 15:25:46 +03:00
parent 96bfb178b0
commit 822856747a

View File

@@ -218,7 +218,7 @@ pub unsafe extern "C" fn read_obj(
ULDDObjResultVec::from(objects)
}
unsafe fn drop_c_string(ptr: *mut i8) {
unsafe fn drop_c_string(ptr: *mut c_char) {
if !ptr.is_null() {
let _ = CString::from_raw(ptr);
}