check_signed: clean ups. add check for impossibly low comparisons
commit07f50a35cb2a3b67825c4c49104368df8e5c95f9
authorDan Carpenter <error27@gmail.com>
Sat, 23 Jan 2010 12:21:17 +0000 (23 15:21 +0300)
committerDan Carpenter <error27@gmail.com>
Sat, 23 Jan 2010 12:21:17 +0000 (23 15:21 +0300)
tree531d8fa1c2d2604ca1d4fb1dc1e46dd8268d2c58
parentea313d7558202afcf0011ef23013b4ae1f5f1abd
check_signed:  clean ups.  add check for impossibly low comparisons

There was already a check for comparing unsigned numbers to negative.  I
left that one the same.  Also now if you compare a char to -1000 or other
impossibly low numbers it will complain.

The bit that printed out "this condition is always true/the same/false was
a bit buggy so I fixed it and cleaned it up a bit.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_signed.c
validation/sm_casts.c