9 Sep
2021
9 Sep
'21
3:46 p.m.
On Mon, 6 Sept 2021 at 13:54, Nikolay Sivov <nsivov(a)codeweavers.com> wrote:
+ if (!!a->semantic_name ^ !!b->semantic_name) + return a->semantic_name ? -1 : 1;
I suppose that's fine, although "if (!a->semantic_name != !b->semantic_name)" would work just as well. Alternatively, we could do something like if ((ret = (!a->semantic_name - !b->semantic_name))) return ret; which would perhaps better fit the rest of the function.