summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-08-04 14:13:56 +0100
committerBehdad Esfahbod <behdad@behdad.org>2017-08-04 14:23:10 +0100
commit484cb300eadf54a1e2248f8bd4e7717d6d3f7d31 (patch)
tree220a773331c7aa07a4a43ce4fdb1226c9fef3195
parent9bb36b42c9df42fb813d5fb3387d515667e859e0 (diff)
Fix sign-difference compare warning
-rw-r--r--src/fcfreetype.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 2363baf..724f275 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1164,7 +1164,6 @@ FcFreeTypeQueryFace (const FT_Face face,
int weight = -1;
int width = -1;
FcBool decorative = FcFalse;
- int i;
FcCharSet *cs;
FcLangSet *ls;
#if 0
@@ -1529,6 +1528,7 @@ FcFreeTypeQueryFace (const FT_Face face,
tmp = FT_Get_Postscript_Name (face);
if (!tmp)
{
+ unsigned int i;
FcChar8 *family, *familylang = NULL;
size_t len;
int n = 0;
@@ -1606,6 +1606,7 @@ FcFreeTypeQueryFace (const FT_Face face,
if (os2 && os2->version >= 0x0001 && os2->version != 0xffff)
{
+ unsigned int i;
for (i = 0; i < NUM_CODE_PAGE_RANGE; i++)
{
FT_ULong bits;
@@ -1920,6 +1921,7 @@ FcFreeTypeQueryFace (const FT_Face face,
if (!(face->face_flags & FT_FACE_FLAG_SCALABLE))
{
+ int i;
for (i = 0; i < face->num_fixed_sizes; i++)
if (!FcPatternAddDouble (pat, FC_PIXEL_SIZE,
FcGetPixelSize (face, i)))