Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Sep 18, 2024
1 parent 1d42d61 commit 2202524
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shared_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,8 @@ macro_rules! impl_shared_ptr_target {
}
unsafe fn __from_unmanaged(value: *mut Self, new: *mut c_void) {
extern "C" {
attr! {
#[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$from_unmanaged")]
fn __from_unmanaged(new: *mut c_void, value: *mut c_void);
}
#[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$from_unmanaged")]
fn __from_unmanaged(new: *mut c_void, value: *mut c_void);
}
unsafe { __from_unmanaged(new, value as *mut c_void) }
}
Expand Down

0 comments on commit 2202524

Please sign in to comment.