1 Oct
2022
1 Oct
'22
1:53 a.m.
On Fri Sep 30 23:03:18 2022 +0000, Connor McAdams wrote:
My assumption here is that if `val[0]` is less than `val[1]`, it underflows and represents a negative number (less than) and if `val[0]` is greater than `val[1]` it will represent a positive number. If they're equal, it will represent 0. Similar to how string comparisons work. Would that not work here? 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
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/908#note_9892