ranges: fix a bug in rl_invert()
commit30af29cd7e0c47c7b67f3e8921a589e2c40fedd9
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 22 Apr 2016 11:06:31 +0000 (22 14:06 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 22 Apr 2016 11:06:31 +0000 (22 14:06 +0300)
tree4fd4bf016a617f2b606d55b0062f96b13818cab6
parentd23745cfdfda1fbf27865b94966bcf5f5e6913c9
ranges: fix a bug in rl_invert()

The first line which returns early for void types is, basically an
admission that I'm not sure what's going on here.  I don't think it
actually changes behavior.

The bug is the next part.  If we were supposed to add type_max to inverted
range then it wasn't doing that.

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