Fix warning on older compilers

This commit is contained in:
Kovid Goyal 2019-05-24 12:07:24 +05:30
parent 00fe963e7c
commit f61dfb0828
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -290,7 +290,7 @@ get_glyph_width(PyObject *s, glyph_index g) {
#define B self->face->glyph->bitmap
/* printf("glyph: %u bitmap.width: %d bitmap.rows: %d horiAdvance: %ld horiBearingX: %ld horiBearingY: %ld vertBearingX: %ld vertBearingY: %ld vertAdvance: %ld width: %ld height: %ld\n", */
/* g, B.width, B.rows, M.horiAdvance, M.horiBearingX, M.horiBearingY, M.vertBearingX, M.vertBearingY, M.vertAdvance, M.width, M.height); */
return B.width ? B.width : (M.width / 64);
return B.width ? (int)B.width : (int)(M.width / 64);
#undef M
#undef B
}