30 Sep
2022
30 Sep
'22
11:03 p.m.
On Fri Sep 30 21:37:02 2022 +0000, Esme Povirk wrote:
I'm not sure this actually works for a comparison function. `val` is an int, and the result is an int, so the subtraction here could overflow or underflow. 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?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/908#note_9887