sval: cast things correctly in sval_cmp()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Nov 2012 13:07:56 +0000 (16:07 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Nov 2012 13:07:56 +0000 (16:07 +0300)
commit5de1dfbb0f5a28fc8d4c3dfc28898bf0090a3703
tree0c61a5d892c0ad3b1d32ce8778d17a662713efa4
parent7d90f3c7149d3cb915075264e1c70250ba81fbe9
sval: cast things correctly in sval_cmp()

The problem here is that if we wanted to cast both sides to u32 the
original code would count negative numbers as high u64 values.  We need
to actually do the cast before doing the comparison.

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