4 Oct
2022
4 Oct
'22
8:10 a.m.
On Sat Oct 1 01:53:55 2022 +0000, Esme Povirk wrote:
Some concrete examples: ``` val[0] = 10; val[1] = 5; val[0] - val[1] => 5 which is positive val[0] = 0x7fffffff; val[1] = -2; val[0] - val[1] => (int)0x80000001 which is negative ``` Yes, this doesn't work in all cases. In wined3d we have `wined3d_uint32_compare()` (introduced by commit 9b98d86f292891e55ab33e830470f281ce9a10ae) for this kind of comparison; there are similar helpers in a couple of other modules as well.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/908#note_9974