commit | 8efbac18a251580615e3a5c587155fd7233b1b13 | [log] [tgz] |
---|---|---|
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Thu Jan 07 02:47:09 2016 +0100 |
committer | Christopher Li <sparse@chrisli.org> | Thu Feb 04 23:47:49 2016 +0800 |
tree | 039677d4beaa69b85e009795a7cfaefbf724ae82 | |
parent | 38c9e9f3b3faba3dea7f42c37d565a425867060e [diff] |
Fix size calculation of unsized bool array This stops sparse from issuing the error message "error: cannot size expression" for code like: static _Bool boolarray[] = { 0, 1, }; static int n = sizeof(boolarray); The fix consists of using array_element_offset() for calculating the size of unsized arrays, like it is done elsewhere for sized ones. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>