Skip to content

Commit

Permalink
More lint
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Sep 16, 2024
1 parent 2814f55 commit 01a467f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qirlib/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pub(crate) extern "C" fn diagnostic_handler(
let severity = LLVMGetDiagInfoSeverity(diagnostic_info);
if severity == LLVMDiagnosticSeverity::LLVMDSError {
let c_char_output =
(output as *mut *mut ::core::ffi::c_void).cast::<*mut ::core::ffi::c_char>();
*c_char_output = LLVMGetDiagInfoDescription(diagnostic_info)
output.cast::<*mut ::core::ffi::c_void>().cast::<*mut ::core::ffi::c_char>();
*c_char_output = LLVMGetDiagInfoDescription(diagnostic_info);
}
}
}

0 comments on commit 01a467f

Please sign in to comment.