From 81857c9f94c091480d1346f98b4d26fab38e4c4a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 10 Jun 2022 21:18:14 -0500 Subject: [PATCH] Bugfix: Incorrect 4-width characters are generated. This is caused by a simple typo. --- level_0/f_utf/c/private-utf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_utf/c/private-utf.c b/level_0/f_utf/c/private-utf.c index 1323233..4dff8f1 100644 --- a/level_0/f_utf/c/private-utf.c +++ b/level_0/f_utf/c/private-utf.c @@ -80,7 +80,7 @@ extern "C" { else if (macro_f_utf_char_t_width(character) == 4) { *unicode = (macro_f_utf_char_t_to_char_1(character) & 0x7) << 18; *unicode |= (macro_f_utf_char_t_to_char_2(character) & 0x3f) << 12; - *unicode |= (macro_f_utf_char_t_to_char_2(character) & 0x3f) << 6; + *unicode |= (macro_f_utf_char_t_to_char_3(character) & 0x3f) << 6; *unicode |= macro_f_utf_char_t_to_char_4(character) & 0x3f; } -- 1.8.3.1