From: Kevin Day Date: Sat, 11 Jun 2022 02:18:14 +0000 (-0500) Subject: Bugfix: Incorrect 4-width characters are generated. X-Git-Tag: 0.5.10~52 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=81857c9f94c091480d1346f98b4d26fab38e4c4a;p=fll Bugfix: Incorrect 4-width characters are generated. This is caused by a simple typo. --- 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; }