27 Feb
2025
27 Feb
'25
4:07 p.m.
On Thu Feb 27 16:07:16 2025 +0000, Bernhard Übelacker wrote:
If I understand it right the intention seems to be to detect the case when `info != infos[i]`. And the result of the substraction seems to be just an integer type, therefore the addition increases just by bytes not sizeof(*infos). In case of i==0 it the version `info - infos + i` works, but not when info points to the second record in infos. And yes, `info != infos + i` would make the intention clearer, so I pushed this version. Right of course, duh.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7435#note_96133