emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
980 stars 92 forks source link

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

Closed gillett-hernandez closed 3 months ago

gillett-hernandez commented 3 months ago

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

emoon commented 3 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.