You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past few days winapi was hit with a deluge of this warning (266 of them to be precise): warning: constant evaluation error: attempted to subtract with overflow. This will become a HARD ERROR in the future, #[warn(const_err)] on by default
I can't say I'm too thrilled as winapi makes use of this pattern quite a bit in defining constants: pub const LVN_DELETEALLITEMS: ::UINT = LVN_FIRST - 4;
The workaround is kinda ugly: pub const LVN_DELETEALLITEMS: ::UINT = (LVN_FIRST as ::INT - 4) as ::UINT;