diff options
| author | Franz Schrober <franzschrober@yahoo.de> | 2013-11-28 11:16:22 +0100 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2013-11-29 15:04:12 -0800 |
| commit | b1c2600e2ce164fcebc507722905a008f8e2a442 (patch) | |
| tree | 9f78663219fcac64988a9920aaa66b45fc603f37 /parse.dtd | |
| parent | e13f6da038de3a0afaf1c48f76395cbccfb37f92 (diff) | |
| download | sparse-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 'parse.dtd')
0 files changed, 0 insertions, 0 deletions
