From 73b97bcf662f5e952fef49bd7259f7fb910b0820 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 May 2024 00:05:20 +0200 Subject: Use char8_t instead of uint8_t --- lib/unicode/string/u8norm_nfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/unicode/string') 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)) -- cgit v1.2.3