diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-12 02:11:02 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-28 00:46:11 +0100 |
commit | 2d952595f4851e91834d7d3df69eab12eb5feb3d (patch) | |
tree | 816b4c84c347bd8be1135e422783d72a6040a439 | |
parent | 832d7a765b4f838663f2e6eaacae774bec9c7a74 (diff) | |
download | sparse-2d952595f4851e91834d7d3df69eab12eb5feb3d.tar.gz |
arch: char32_t should be the same as uint32_t, not uint
When the predefine for char32_t was added, it was made to
correspond 'unsigned int' with the commit message saying
some archs use 'unsigned long'. In fact, it appears that
char32_t is always uint32_t (on the archs & OSes I'm using
to look at this).
So, simply predefine __CHAR32_TYPE__ like uint32_t is.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1418,7 +1418,7 @@ static void predefined_macros(void) predefined_ctype("WCHAR", wchar_ctype, PTYPE_ALL_T|PTYPE_MIN|PTYPE_TYPE); predefined_ctype("WINT", wint_ctype, PTYPE_ALL_T|PTYPE_MIN|PTYPE_TYPE); predefined_ctype("CHAR16", &ushort_ctype, PTYPE_TYPE); - predefined_ctype("CHAR32", &uint_ctype, PTYPE_TYPE); + predefined_ctype("CHAR32", uint32_ctype, PTYPE_TYPE); predefined_ctype("INT", &int_ctype, PTYPE_ALL); predefined_ctype("LONG", &long_ctype, PTYPE_ALL); |