address: calculate bit types offsets better
commitbf4c599a04cbd5588a5adcd404da31aa443fb87f
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2019 07:32:29 +0000 (15 10:32 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2019 07:32:29 +0000 (15 10:32 +0300)
treed2d8a043146a9343780d85d601300c8562180ebe
parent0b71aa71a0ea5f7f921b0a95776d10f2dc88fe16
address: calculate bit types offsets better

In the original code when a struct had bit types like this:

unsigned int foo:1;
unsigned int bar:1;

Then Smatch was adding a whole byte instead of a bit.  I probably should
just be using the Sparse code which handles this, but I only found it
after I had already written this code...

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