aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-18 21:53:53 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-25 21:02:14 +0100
commit40dbb39225621021d27d4727d784ee40a1344418 (patch)
treeee1ebf27c169afee982bb6fadb49c961fd9990a0 /cgcc
parent441c2847ad4b73b2b45a4e4e596a3f98908e9772 (diff)
downloadsparse-dev-40dbb39225621021d27d4727d784ee40a1344418.tar.gz
evaluate: sizeof(bool) could be larger than sizeof(char)
The C standard doesn't require that the size of a _Bool is 1, its size is implementation defined. However, in evaluate_sizeof() the assumption is made that a bool is the same size as a char. Fix this wrong assumption by using the existing bits_in_bool. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'cgcc')
0 files changed, 0 insertions, 0 deletions