sval: type: handle type_bits() for addresses
commit04a122ec5645d2e3a41ecd653d1f3cecc9deb230
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Nov 2012 16:46:08 +0000 (19 19:46 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Nov 2012 18:47:47 +0000 (19 21:47 +0300)
tree2e4e236909505bcfdde0f19cf9bbd2ec93258e66
parentaf6b9dc9b1dad6ceea9cd80c3aa1092003c56434
sval: type: handle type_bits() for addresses

Sparse doesn't set the ->bit_size field if you have an ampersand address.
So say smatch has to evaluate the expression if (&foo - &bar > 0) { ...
it wants to cast both sides to the right type but it doesn't know how.

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