[cairo-bugs] [Bug 83295] difference of non negative enums is never negative
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Aug 31 07:22:22 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83295
--- Comment #2 from Massimo <sixtysix at inwind.it> ---
(In reply to comment #1)
> But that is not equivalent. The equivalent assert would be
> assert((int)(a->type - b->type) >= 0);
but that means that you are assigning/converting UINT_MAX - 1 or 2
to an int and gcc knows it cannot happen and I think after
inlining and only checking the sign of the int gcc translates it
to a->type != b->type
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140831/dc4e786c/attachment.html>
More information about the cairo-bugs
mailing list