commit | d25444333c07951bf16788862420e311799c0ad0 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Apr 08 23:15:41 2023 -0400 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Apr 08 23:15:41 2023 -0400 |
tree | 50d3f7460798878e47b0b9e1dbfe6b1a21a3c538 | |
parent | b0a4f99278aa7e14bd1d0d9e40ad28dce543fde6 [diff] |
[sfnt] Clean up CMAP{4,12,13} handling. This moves the charcode overflow checks upstream and turns some while-loops into the do-while ones to avoid the uninitialized warnings. This should slightly reduce the number of checks and jumps. * src/sfnt/ttcmap.c (tt_cmap{4,12,13}_next, tt_cmap{4.12.13}_char_map_linear): Remove the charcode overflow check. (tt_cmap{4,12,13}_char_map_binary): Ditto and use do-while. (tt_cmap{12,13}_char_next): Add the overflow check.