<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - difference of non negative enums is never negative"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83295#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - difference of non negative enums is never negative"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83295">bug 83295</a>
from <span class="vcard"><a class="email" href="mailto:sixtysix@inwind.it" title="Massimo <sixtysix@inwind.it>"> <span class="fn">Massimo</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=83295#c1">comment #1</a>)
<span class="quote">> But that is not equivalent. The equivalent assert would be
> assert((int)(a->type - b->type) >= 0);</span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>