math: improve absolute max/min with regards to casting
commit7d089f483cdb4f57ad54ea4881eadbbfee450b9f
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 May 2013 11:21:09 +0000 (18 14:21 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 May 2013 11:21:09 +0000 (18 14:21 +0300)
tree0617879442c1912bd3a8eaa2b7c3809fc05ee4fe
parent11928a4a497688f4f844457741ed5fac344cd6c4
math: improve absolute max/min with regards to casting

The problem is that if you the absolute_max() for unknown variables was
calculated in get_absolute_max() which only knows the type of the outside
type.  So far example this fails:

char c;
__smatch_absolute_max((int)c);

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_math.c