]> git.tdb.fi Git - ttf2png.git/commitdiff
Avoid warning about signed/unsigend mismatch
authorMikko Rasa <tdb@tdb.fi>
Tue, 14 Jul 2015 09:59:33 +0000 (12:59 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 14 Jul 2015 09:59:33 +0000 (12:59 +0300)
FreeType recently changed some fields in FT_Bitmap to unsigned.

ttf2png.c

index 8fc211e4900fd73b6f41711075a6162de8034663..f8f465ffd6bf80209032a66475069fe5728c9f44 100644 (file)
--- a/ttf2png.c
+++ b/ttf2png.c
@@ -351,7 +351,7 @@ int init_font(Font *font, FT_Face face, unsigned first, unsigned last, int autoh
        {
                unsigned  n;
                FT_Bitmap *bmp = &face->glyph->bitmap;
-               int       x, y;
+               unsigned  x, y;
                int       flags = 0;
                Glyph     *glyph;