summaryrefslogtreecommitdiffstats
path: root/src/file_ttf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
commit5ed8822f2b3cc95bf7f9bda45bf7b57e8a693f6d (patch)
tree69fd55db22dbc9b3d4d7ebc6aba46203a9c82b0e /src/file_ttf.c
parent17040353bc6dc9d3ac701037fe90ce69382fb49f (diff)
Turn off various signed/unsigned comparaison warnings
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;