Skip to content

Commit dca2085

Browse files
committed
Update rand requirement from 0.9 to 0.10
1 parent 5fc6ef9 commit dca2085

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/coroutine/korosensei.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ impl<'c, Param, Yield, Return> Coroutine<'c, Param, Yield, Return> {
108108
target_arch = "x86",
109109
))] {
110110
let TrapHandlerRegs { eip, esp, ebp, ecx, edx } = regs;
111-
context.uc_mcontext.gregs[usize::try_from(libc::REG_EIP).expect("overflow")] = u32::from_ne_bytes(eip.to_ne_bytes());
112-
context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")] = u32::from_ne_bytes(esp.to_ne_bytes());
113-
context.uc_mcontext.gregs[usize::try_from(libc::REG_EBP).expect("overflow")] = u32::from_ne_bytes(ebp.to_ne_bytes());
114-
context.uc_mcontext.gregs[usize::try_from(libc::REG_ECX).expect("overflow")] = u32::from_ne_bytes(ecx.to_ne_bytes());
115-
context.uc_mcontext.gregs[usize::try_from(libc::REG_EDX).expect("overflow")] = u32::from_ne_bytes(edx.to_ne_bytes());
111+
context.uc_mcontext.gregs[usize::try_from(libc::REG_EIP).expect("overflow")] = i32::from_ne_bytes(eip.to_ne_bytes());
112+
context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")] = i32::from_ne_bytes(esp.to_ne_bytes());
113+
context.uc_mcontext.gregs[usize::try_from(libc::REG_EBP).expect("overflow")] = i32::from_ne_bytes(ebp.to_ne_bytes());
114+
context.uc_mcontext.gregs[usize::try_from(libc::REG_ECX).expect("overflow")] = i32::from_ne_bytes(ecx.to_ne_bytes());
115+
context.uc_mcontext.gregs[usize::try_from(libc::REG_EDX).expect("overflow")] = i32::from_ne_bytes(edx.to_ne_bytes());
116116
} else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {
117117
let TrapHandlerRegs { rip, rsp, rbp, rdi, rsi } = regs;
118118
(*context.uc_mcontext).__ss.__rip = rip;

0 commit comments

Comments
 (0)