Skip to content

Commit

Permalink
Fix type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Feb 28, 2024
1 parent 2ddca2a commit f262716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intel-sgx/sgxs/src/sgxs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ impl<W: Write> SgxsWrite for W {
let mut buf = [0u8; 64];
unsafe {
let (tag, headerdst) = buf.split_at_mut(8);
let tag = &mut *(&mut tag[0] as *mut _ as *mut u64);
let headerdst = &mut headerdst[0] as *mut _;
let tag = &mut *(&mut tag[0..8] as *mut _ as *mut u64);
let headerdst = &mut headerdst[0..56] as *mut _;

match meas {
&ECreate(ref header) => {
Expand Down

0 comments on commit f262716

Please sign in to comment.