diff options
Diffstat (limited to 'src/u8c/u32sz.c')
-rw-r--r-- | src/u8c/u32sz.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/u8c/u32sz.c b/src/u8c/u32sz.c index 9dc2108..3320ae2 100644 --- a/src/u8c/u32sz.c +++ b/src/u8c/u32sz.c @@ -16,6 +16,7 @@ # include <assert.h> # include <stdbool.h> # include <stddef.h> +# include <stdint.h> # include <u8c/SIZE_C.h> # include <u8c/u32fndchr.h> # include <u8c/u32sz.h> @@ -23,7 +24,7 @@ bool u8c_u32sz(size_t * const _sz,char32_t const * const _in) { assert(_sz != NULL); size_t sz = SIZE_C(0x0); - if(u8c_u32fndchr(&sz,_in,U'\0')) { + if(u8c_u32fndchr(&sz,_in,UINT8_C(0x0))) { return true; } *_sz = sz; |