ranges: in cast_rl() sometimes it's better to just give up
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2013 20:11:55 +0000 (23:11 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2013 20:11:55 +0000 (23:11 +0300)
commitd2ae6d6b2c1eaccc3d4603d1ee4e55916661deb6
tree3a2be4dfd6cb5aff2c986805a83dc6dcdcd7faa8
parentd541b69a5bb17ad27c120fc1504c4003542618e1
ranges: in cast_rl() sometimes it's better to just give up

The story here is that sometime people give you a very bogus range like
1-0 and in that case cast_rl() should just return the whole range because
it means we don't actually know anything.

I've tested this for a while and it doesn't seem to cause too many
problems.

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