coroutine-rs icon indicating copy to clipboard operation
coroutine-rs copied to clipboard

Bugfix with std::mem (modern Rust)

Open therustmonk opened this issue 10 years ago • 1 comments

Can't compile in windows without std::mem import.

stack_protected.rs

#[cfg(windows)]
fn page_size() -> usize {
    unsafe {
        let mut info = mem::zeroed(); // this fails
        libc::GetSystemInfo(&mut info);
        info.dwPageSize as usize
    }
}

therustmonk avatar Sep 15 '15 08:09 therustmonk

Hmm, I should just merge the fix on context-rs.

zonyitoo avatar Sep 15 '15 10:09 zonyitoo