From: Rolf Eike Beer Date: Tue, 22 Sep 2009 23:44:03 +0000 (-0700) Subject: Make sure the value in abs() does not get truncated if it is greater than 2^32 X-Git-Tag: v2.6.32-rc1~383 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a49c59c042c63b432307c1bbf7dac5a104c786e6;p=pandora-kernel.git Make sure the value in abs() does not get truncated if it is greater than 2^32 abs() will truncate the input if is it outside the 2^32 range. Fix that by assuming `long' input. This might generate worse code in the common case. Signed-off-by: Rolf Eike Beer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed