diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-07-08 00:29:37 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-07-08 00:29:37 +0300 |
commit | 56bf92f0f6df8684c5ffb63ffa7218322eedf574 (patch) | |
tree | 2a152cab998515afc0a2a0d57da47807794bf094 /source | |
parent | b9c0eed206b0d7d1b6af6809c6d2cb6c2187bcc8 (diff) |
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
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |