Skip to content

Commit

Permalink
Bad rename
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Sep 16, 2024
1 parent 80e9fc2 commit 0b873d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyqir/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl Module {
}
unsafe {
let mut c_char_output: *mut ::core::ffi::c_char = ptr::null_mut();
let output = (&mut char_ptr as *mut *mut ::core::ffi::c_char
let output = (&mut c_char_output as *mut *mut ::core::ffi::c_char
as *mut *mut ::core::ffi::c_void)
.cast::<::core::ffi::c_void>();

Expand All @@ -291,7 +291,7 @@ impl Module {
if result == 0 {
Ok(())
} else {
let error = Message::from_raw(char_ptr);
let error = Message::from_raw(c_char_output);
return Err(PyValueError::new_err(error.to_str().unwrap().to_string()));
}
}
Expand Down

0 comments on commit 0b873d2

Please sign in to comment.