Skip to content

Commit 265db7d

Browse files
authored
gxvmort2.c: Fix C4018: '>': signed/unsigned mismatch
freetype\src\gxvalid\gxvmort2.c(195,30): warning C4018: '>': signed/unsigned mismatch Authored By: botder (at 4dcf140#diff-a3a76e7f82c9632f3db0ce08b8b70c2f0938ab3219894f988b0b069a3f7e0c6a) Before upstream receives it, keep picking this commit on every Freetype update.
1 parent f415596 commit 265db7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vendor/freetype/src/gxvalid/gxvmort2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@
192192
offset, optdata->ligatureTable - offset * 2 ));
193193

194194
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
195-
} else if ( offset * 2 >
196-
optdata->ligatureTable + optdata->ligatureTable_length )
195+
} else if ( offset * 2u >
196+
(FT_ULong)( optdata->ligatureTable + optdata->ligatureTable_length ) )
197197
{
198198
GXV_TRACE(( "too long offset 0x%08lx:"
199199
" 2 x offset > ligatureTable + ligatureTable_length"

0 commit comments

Comments
 (0)