This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc trunk vs python


x < 0 && x == -x

That is the issue right there really, doing x == -x will never be true
because -x will overflow for INT_MIN.

Doing "((unsigned)x) == -(unsigned)x" should fix the issue.
Note this is unrelated to Darwin or any processor really too.

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]