aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pre-process.c
diff options
authorFranz Schrober <franzschrober@yahoo.de>2013-11-28 11:16:22 +0100
committerChristopher Li <sparse@chrisli.org>2013-11-29 15:04:12 -0800
commitb1c2600e2ce164fcebc507722905a008f8e2a442 (patch)
tree9f78663219fcac64988a9920aaa66b45fc603f37 /pre-process.c
parente13f6da038de3a0afaf1c48f76395cbccfb37f92 (diff)
downloadsparse-dev-b1c2600e2ce164fcebc507722905a008f8e2a442.tar.gz
sparse: Also check bit_offset when checking implicit casts
The comparison in same_cast_type only checked the bit_size of the new and the old symbol. The bit_offset was only compared with itself and thus would always be true. Instead Linus most likely wanted to compare the bit_offset of the new and the old symbol. This regression was introduced in 47f53396a1d62719c44941f84370ead80181728e ("If two implied casts end up undoing each other, just remove them."). Reported-by: James Westby <jw+debian@jameswestby.net> Signed-off-by: Franz Schrober <franzschrober@yahoo.de> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'pre-process.c')
0 files changed, 0 insertions, 0 deletions