[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#362414: abs() returns a negative number & signed types are undefined on overflow (fwd)



* Martin Michlmayr:

>> Does help to compile it with "-fwrapv" ?
>
> No.

Then it's a real bug in -fwrapv support, I guess.  Without -fwrapv,
all bets are off AFAICS because the example code results in signed
integer overflow.



Reply to: