Fix some Clang warnings.

This commit is contained in:
Michael R Sweet
2024-01-24 10:58:11 -05:00
parent 476013706e
commit 59deee020a
3 changed files with 16 additions and 12 deletions

2
ttf.c
View File

@@ -1307,7 +1307,7 @@ read_cmap(ttf_t *font) // I - Font
{
// Use an "obscure indexing trick" (words from the spec, not
// mine) to look up the glyph index...
temp = segment->idRangeOffset / 2 - segCount + (ch - segment->startCode) + (segment - segments);
temp = (int)(segment->idRangeOffset / 2 - segCount + (ch - segment->startCode) + (segment - segments));
TTF_DEBUG("read_cmap: ch=%d, temp=%d\n", ch, temp);
if (temp < 0 || temp >= numGlyphIdArray)