emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.04k stars 99 forks source link

fix negate with overflow, unsure why #[repr(C)] fixes it #348

Closed gillett-hernandez closed 8 months ago

gillett-hernandez commented 8 months ago

fixes https://github.com/emoon/rust_minifb/issues/347

emoon commented 8 months ago

Thanks! I'm unsure why this fixes it. The struct does get passed to WndProc and such, but everything is Rust side code so it shouldn't matter tho.