[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)



* Petr Salinger <Petr.Salinger@t-systems.cz> [2006-04-14 13:05]:
> Does help to change definition of sum_abs from "int" to "unsigned int" ?

Yes.

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

No.
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: