Skip to content

Commit

Permalink
Merge pull request #271 from burrbull/test-decode
Browse files Browse the repository at this point in the history
remode decode_utf16 on BUFFER
  • Loading branch information
burrbull authored Nov 2, 2020
2 parents 6ae6aa6 + e2d43ce commit 06d966f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions engine/src/xetex_xetex0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3773,16 +3773,6 @@ pub(crate) unsafe fn get_next(input: &mut input_state_t) -> (Cmd, i32, i32) {
if input.loc <= input.limit {
let mut chr = BUFFER[input.loc as usize];
input.loc += 1;
if chr >= 0xd800
&& chr < 0xdc00
&& input.loc <= input.limit
&& BUFFER[input.loc as usize] >= 0xdc00
&& BUFFER[input.loc as usize] < 0xe000
{
let lower = (BUFFER[input.loc as usize] - 0xdc00) as UTF16_code;
input.loc += 1;
chr = (0x1_0000 + ((chr - 0xd800) * 1024) as i64 + lower as i64) as i32
}
'c_65186: loop {
ochr = Some(chr);
let cmd = Cmd::from(*CAT_CODE(chr as usize) as u16);
Expand Down

0 comments on commit 06d966f

Please sign in to comment.