Skip to content

Commit

Permalink
Fix invalid coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Apr 26, 2024
1 parent 32391a3 commit 9941431
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/pindakaas-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ pub fn ipasir_solver_derive(input: TokenStream) -> TokenStream {
#sol_ident {
ptr: self.ptr,
#[cfg(feature = "ipasir-up")]
prop: if let Some(p) = &mut #prop_member { Some((&mut (p.prop)) as *mut _ as *mut std::ffi::c_void) } else { None },
prop: if let Some(p) = #prop_member .as_mut() {
Some((&mut (*p.prop)) as *mut _ as *mut std::ffi::c_void)
} else {
None
},
}
}
}
Expand Down

0 comments on commit 9941431

Please sign in to comment.