Skip to content

Commit

Permalink
this was supposed to be part of 4837272
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Aug 10, 2023
1 parent a3c96c1 commit 4908938
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ where
unsafe { (closure_env_ptr.read())(&*jbuf) }
}
unsafe {
// We use `SigJmpBuf` here rather than just `JmpBuf` because some
// platforms, like glibc, use the same structure for both (and just have
// `setjmp` be a shallow wrapper around `sigsetjmp`).
let mut jbuf = MaybeUninit::<SigJmpBufStruct>::zeroed().assume_init();
let mut jbuf = MaybeUninit::<JmpBufStruct>::zeroed().assume_init();
let ret: c_int;
let jbuf_ptr = std::ptr::addr_of_mut!(jbuf);
let closure_env_ptr = std::ptr::addr_of_mut!(callback);
Expand Down

0 comments on commit 4908938

Please sign in to comment.