Fix warning

This commit is contained in:
Behdad Esfahbod 2018-11-30 23:20:50 -05:00
parent 825df6dbc7
commit af349ee348
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ struct CFFIndex
inline unsigned int max_offset (void) const
{
unsigned int max = 0;
for (unsigned int i = 0; i <= count; i++)
for (unsigned int i = 0; i < count + 1; i++)
{
unsigned int off = offset_at (i);
if (off > max) max = off;