math: improve how casts are handled
commit840f2b035fe0a3392853ba3e24ea85caf7ee3bb5
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Jul 2013 07:14:36 +0000 (15 10:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Jul 2013 07:14:36 +0000 (15 10:14 +0300)
tree67ed44e8a1a78f04fb8441c49659a58a61529799
parenteaad2f5813fd15c0a2133f9fb64397601750d78d
math: improve how casts are handled

This is for code like:

int x = le16_to_cpu(foo);

It is useful to know that x is a number between 0 and u16max, as opposed to
being a negative number or something.

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