From 5d5e7263f64289e4e778ea500baff14390fe37b1 Mon Sep 17 00:00:00 2001 From: Kyle J Strand Date: Thu, 21 May 2026 13:11:20 -0600 Subject: [PATCH] fix: use char type alias --- lib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 71b8016..d353088 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -94,7 +94,7 @@ pub(crate) fn handle_libquil_error(errno: libquil_error_t) -> Result<(), String> } } -pub(crate) fn get_string_from_pointer_and_free(ptr: *mut i8) -> Result { +pub(crate) fn get_string_from_pointer_and_free(ptr: *mut std::os::raw::c_char) -> Result { unsafe { let s = CStr::from_ptr(ptr).to_str()?.to_string(); libc::free(ptr as *mut _);