We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29cc0b1 + 5d5e726 commit 8aa2ed2Copy full SHA for 8aa2ed2
1 file changed
lib/src/lib.rs
@@ -94,7 +94,7 @@ pub(crate) fn handle_libquil_error(errno: libquil_error_t) -> Result<(), String>
94
}
95
96
97
-pub(crate) fn get_string_from_pointer_and_free(ptr: *mut i8) -> Result<String, Utf8Error> {
+pub(crate) fn get_string_from_pointer_and_free(ptr: *mut std::os::raw::c_char) -> Result<String, Utf8Error> {
98
unsafe {
99
let s = CStr::from_ptr(ptr).to_str()?.to_string();
100
libc::free(ptr as *mut _);
0 commit comments