From 822856747a2534fe58ad7b23830aa21e182f2c75 Mon Sep 17 00:00:00 2001 From: *Nix Fanboy <63163893+nix-enthusiast@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:25:46 +0300 Subject: [PATCH] Minor But Important Change - i8 changed to c_char to improve the compatibility between different Rust targets --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1300220..2bf1f5c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); }