Re: [PATCH] Make sure abs() always works on a signed argument

From: Andreas Schwab
Date: Wed Jul 28 2010 - 09:44:38 EST


Michal Januszewski <michalj@xxxxxxxxx> writes:

> To fix this problem, explicitly cast the argument of abs() to signed, so
> that it gets properly expanded to long in case the original argument was
> an int.

This will of course re-introduce the truncation, and effectively reverts
a49c59c0.

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxx
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/