sval: create cast_rl() which casts a range list to a different type
commit3fe6bcb9756f34a3b25da07f14229619cf2694ff
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Nov 2012 11:57:51 +0000 (6 14:57 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Nov 2012 11:57:51 +0000 (6 14:57 +0300)
tree752725921c6293b59508d30067ba44726fef67a2
parent4417006021bc9ee100d9f4f04350f00caac46a14
sval: create cast_rl() which casts a range list to a different type

If the first range list falls outside the list of possible values then it
just returns the whole range for that type.  That's not totally the right
thing to do, but it works for now.

I use this function in smatch_extra.c match_comparison() because I want to
get rid of a place which uses the pre sval version of range lists.

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