From c80f5c848a22366275587d4d692fd32e938e2e02 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 2 Mar 2016 09:07:55 -0800 Subject: Fix signed/unsigned comparison warning. --- source/pdf/pdf-font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-font.c') diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index 01274389..7759cfaa 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -1778,7 +1778,7 @@ pdf_add_to_unicode(fz_context *ctx, pdf_document *doc, fz_font *font) ucs = FT_Get_First_Char(face, &gid); while (gid > 0) { - if (gid < face->num_glyphs) + if (gid < (FT_ULong)face->num_glyphs && face->num_glyphs > 0) table[gid] = ucs; ucs = FT_Get_Next_Char(face, ucs, &gid); } -- cgit v1.2.3