fixed noncharacter bug

master
Allen Webster 2017-03-25 20:50:29 -04:00
parent d94c8c3672
commit 74be67ac80
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ translating_select_emit_rule_with_font(System_Functions *system, Render_Font *fo
if (desc.prelim_emit_type == BufferModelUnit_Codepoint){ if (desc.prelim_emit_type == BufferModelUnit_Codepoint){
u32 cp = utf8_to_u32_length_unchecked(tran->fill_buffer, &type_out->codepoint_length); u32 cp = utf8_to_u32_length_unchecked(tran->fill_buffer, &type_out->codepoint_length);
if (type_out->codepoint_length != 0){ 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; type_out->emit_type = BufferModelUnit_Numbers;
} }
else{ else{