12 Sep
2024
12 Sep
'24
8:23 a.m.
On Thu Sep 12 08:15:18 2024 +0000, Dmitry Timoshkov wrote:
This either shouldn't be a DWORD or -1. What about using \~0? It does the same thing, I don't think it matters and alpha_bits is initialized with -1 everywhere else it's used.
Using ~0 makes it very tempting to use ~0u, which is wrong in various cases (`UINT64 bla = ~0u`, isn't the same value as `UINT64 bla = ~0` / `UINT64 bla = -1` which both are equal). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6482#note_81998