Skip to content

Commit

Permalink
fix(ffi): unify c_char ptr cast (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx authored and vobradovich committed Nov 21, 2024
1 parent b2938be commit 53a4a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/idl-parser/src/ffi/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub unsafe extern "C" fn free_parse_result(result: *mut ParseResult) {
unsafe {
let result = Box::from_raw(result);
if result.error.code != ErrorCode::Ok {
let details = CString::from_raw(result.error.details as *mut std::ffi::c_char);
let details = CString::from_raw(result.error.details as _);
drop(details);
}
}
Expand Down

0 comments on commit 53a4a04

Please sign in to comment.