sval: make a typed version of get_value_ranges_sval()
commit79964853bb83463c33aef537796e45d4ae4c2db3
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 12 Nov 2012 14:14:22 +0000 (12 17:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 12 Nov 2012 14:14:22 +0000 (12 17:14 +0300)
tree474d4d4a2b61562eb64bbd9f231597c7d0e665aa
parent6637b998fbdaf640d45bea0412653b5d10a1da2a
sval: make a typed version of get_value_ranges_sval()

Treating all parameters as unsigned long and then casting it to the
correct value is a problem.  It assumed that the cast can truncate things
and lead to signedness bugs.  Of course, that is possible, but it's better
to handle it on the caller side.

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