summaryrefslogtreecommitdiff
path: root/src/pfr/pfrload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pfr/pfrload.c')
-rw-r--r--src/pfr/pfrload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pfr/pfrload.c b/src/pfr/pfrload.c
index 4f8416582..53ce625a7 100644
--- a/src/pfr/pfrload.c
+++ b/src/pfr/pfrload.c
@@ -305,7 +305,7 @@
/* - we need at least 18 bytes for a log font record */
/* - the overall size is at least 95 bytes plus the */
/* log header and log font records */
- if ( count > ( ( 1 << 16 ) - 2 ) / 5 ||
+ if ( count > (FT_UInt)(( 1L << 16 ) - 2 ) / 5 ||
2 + count * 5 >= stream->size - section_offset ||
95 + count * ( 5 + 18 ) >= stream->size )
{