We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549dd70 commit d1a109aCopy full SHA for d1a109a
core/src/coroutine/korosensei.rs
@@ -59,7 +59,7 @@ impl<'c, Param, Yield, Return> Coroutine<'c, Param, Yield, Return> {
59
any(target_os = "linux", target_os = "android"),
60
target_arch = "x86",
61
))] {
62
- let sp = u64::from(i32::cast_signed(context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")]));
+ let sp = u64::cast_signed(context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")]);
63
} else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {
64
let sp = u64::try_from((*context.uc_mcontext).__ss.__rsp).expect("overflow");
65
} else if #[cfg(all(
0 commit comments