From 56bf92f0f6df8684c5ffb63ffa7218322eedf574 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 7 Jul 2022 14:29:37 -0700 Subject: Cleanup: Calm GCC Conversion Warning Commit b9c0eed206b0 introduced a GCC conversion warning because of an assignment of a long int value to an int. Own Code --- source/blender/blenfont/intern/blf_glyph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenfont/intern/blf_glyph.c') diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 4db083366c3..103919e86f2 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -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; } -- cgit v1.2.3