whooooooooops

This commit is contained in:
nora 2022-11-06 18:05:50 +01:00 committed by GitHub
parent ac2f87f81a
commit 65edc92bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,8 +74,8 @@ unsafe fn extract(buf: Buf) -> (Ptr, Ptr) {
);
// both buffers are now filled with fancy provenance bytes, read the pointers out and return them
let a = a_buf.as_ptr().cast::<Ptr>().read();
let b = b_buf.as_ptr().cast::<Ptr>().read();
let a = a_buf.as_ptr().cast::<Ptr>().read_unaligned();
let b = b_buf.as_ptr().cast::<Ptr>().read_unaligned();
(a, b)
}