ranges: cast to the correct type in possibly_true/false()
commit9ef5c7a9c53387de634fa1ecc43e6e3efac49a65
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Dec 2014 13:00:37 +0000 (10 16:00 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Dec 2014 13:00:37 +0000 (10 16:00 +0300)
tree0e2f44355980cda74d545c8274b7076f4d984fe7
parent5879a2f012c2df2d8d0674b0e4e5353285744c4f
ranges: cast to the correct type in possibly_true/false()

We need to cast to the correct common type before doing the comparisons
or it gives incorrect results.  This affects smatch_impossible.c.

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