sval: fix sval_too_high()
commit11928a4a497688f4f844457741ed5fac344cd6c4
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 May 2013 09:50:19 +0000 (18 12:50 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 May 2013 09:50:19 +0000 (18 12:50 +0300)
treecb8a26589cc59f450f599514cf24900dd3e7d90f
parenta9abd907d1c9861539535f25c0d5df454c7b4a01
sval: fix sval_too_high()

The problem is that if there was a number that too high so it got cast to
negative then it was less than the max.  I've changed it to just compare
the .uvalue values which is simpler.

I've changed sval_is_negative() in the same way because I think it makes
it easier to read.  That part of the change is just a cleanup.

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