Skip to content

Commit 8aa2ed2

Browse files
authored
Merge pull request #67 from rigetti/fix-use-char-type-alias
fix: use char type alias
2 parents 29cc0b1 + 5d5e726 commit 8aa2ed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub(crate) fn handle_libquil_error(errno: libquil_error_t) -> Result<(), String>
9494
}
9595
}
9696

97-
pub(crate) fn get_string_from_pointer_and_free(ptr: *mut i8) -> Result<String, Utf8Error> {
97+
pub(crate) fn get_string_from_pointer_and_free(ptr: *mut std::os::raw::c_char) -> Result<String, Utf8Error> {
9898
unsafe {
9999
let s = CStr::from_ptr(ptr).to_str()?.to_string();
100100
libc::free(ptr as *mut _);

0 commit comments

Comments
 (0)