Cleanup: Calm GCC Conversion Warning

Commit b9c0eed206 introduced a GCC conversion warning because of an
assignment of a long int value to an int.

Own Code
This commit is contained in:
Harley Acheson
2022-07-07 14:29:37 -07:00
parent b9c0eed206
commit 56bf92f0f6

View File

@@ -843,7 +843,7 @@ static bool blf_glyph_transform_width(FT_GlyphSlot glyph, float factor)
static bool blf_glyph_transform_spacing(FT_GlyphSlot glyph, float factor)
{
if (glyph->advance.x > 0) {
const int size = glyph->face->size->metrics.height;
const long int size = glyph->face->size->metrics.height;
glyph->advance.x += (FT_Pos)(factor * (float)size / 6.0f);
return true;
}