summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-08 23:15:41 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-08 23:15:41 -0400
commitd25444333c07951bf16788862420e311799c0ad0 (patch)
tree50d3f7460798878e47b0b9e1dbfe6b1a21a3c538 /include
parentb0a4f99278aa7e14bd1d0d9e40ad28dce543fde6 (diff)
downloadfreetype2-d25444333c07951bf16788862420e311799c0ad0.tar.gz
[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.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions