summaryrefslogtreecommitdiffstats
path: root/src/file_ttf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_ttf.c')
-rw-r--r--src/file_ttf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ttf.c b/src/file_ttf.c
index 97265af..bb15717 100644
--- a/src/file_ttf.c
+++ b/src/file_ttf.c
@@ -91,7 +91,7 @@ static int header_check_ttf(const unsigned char *buffer, const unsigned int buff
* entrySelector Log2(maximum power of 2 <= numTables).
* rangeShift NumTables x 16-searchRange.
* */
- if(td_ilog2(numTables) != be16(ttf->entrySelector))
+ if(td_ilog2(numTables) != (uint16_t)be16(ttf->entrySelector))
return 0;
if((16<<be16(ttf->entrySelector)) != be16(ttf->searchRange))
return 0;