commit | 40dbb39225621021d27d4727d784ee40a1344418 | [log] [tgz] |
---|---|---|
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Mon Feb 18 21:53:53 2019 +0100 |
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Mon Feb 25 21:02:14 2019 +0100 |
tree | ee1ebf27c169afee982bb6fadb49c961fd9990a0 | |
parent | 441c2847ad4b73b2b45a4e4e596a3f98908e9772 [diff] |
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>