sval: fix a signedness bug in check_signed.c
commitbf1cb03f772834fd1179bf876cbf13872e8f296a
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Nov 2012 12:12:21 +0000 (8 15:12 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Nov 2012 12:12:21 +0000 (8 15:12 +0300)
tree9a3cafbaf5bfc4940b0faa94c6e85ea716f67bcf
parent5c8a9b6f624e0c5ee3ab0362dc433bb38464742b
sval: fix a signedness bug in check_signed.c

This is supposed to be checking something like if you compare a signed int
and a signed char and the condition is impossible.  So both sides of the
comparison have to be signed.  Otherwise we run into problems because of
type promotion to unsigned.

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