diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-15 00:05:20 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-15 00:05:20 +0200 |
commit | 73b97bcf662f5e952fef49bd7259f7fb910b0820 (patch) | |
tree | 0e02722e3aae4682fd577682f0fc8bb8f6bb272a /lib | |
parent | c6d98138dd766f5ffe7cdab3a7f944a8668d367c (diff) |
Use char8_t instead of uint8_t
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicode/string/u8norm_nfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicode/string/u8norm_nfd.c b/lib/unicode/string/u8norm_nfd.c index efff81a..9dc1066 100644 --- a/lib/unicode/string/u8norm_nfd.c +++ b/lib/unicode/string/u8norm_nfd.c @@ -31,7 +31,7 @@ u8norm_nfd(size_t *dstn, struct u8view src, alloc_fn alloc, void *ctx) check for overflow when computing bufsz because alloc() will handle the overflow error for us. */ size_t bufsz = src.len * NFD_SCALE; - uint8_t *dst = alloc(ctx, nullptr, 0, src.len, NFD_SCALE, alignof(char8_t)); + char8_t *dst = alloc(ctx, nullptr, 0, src.len, NFD_SCALE, alignof(char8_t)); *dstn = 0; for (rune ch; u8next(&ch, &src) != 0; decomp(dst, dstn, bufsz, ch)) |