From 74be67ac800cb5744dc520516b06ae79dbb977d3 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 25 Mar 2017 20:50:29 -0400 Subject: [PATCH] fixed noncharacter bug --- 4ed_translation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4ed_translation.cpp b/4ed_translation.cpp index 97a15980..11aa4251 100644 --- a/4ed_translation.cpp +++ b/4ed_translation.cpp @@ -143,7 +143,7 @@ translating_select_emit_rule_with_font(System_Functions *system, Render_Font *fo if (desc.prelim_emit_type == BufferModelUnit_Codepoint){ u32 cp = utf8_to_u32_length_unchecked(tran->fill_buffer, &type_out->codepoint_length); if (type_out->codepoint_length != 0){ - if ((cp >= nonchar_min && cp <= nonchar_max) || ((cp & 0xFFFF) >= 0xFE)){ + if ((cp >= nonchar_min && cp <= nonchar_max) || ((cp & 0xFFFF) >= 0xFFFE)){ type_out->emit_type = BufferModelUnit_Numbers; } else{