From a39cc5ae4da2cd036a61d69b871a89659fd07547 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Fri, 5 Jun 2020 17:05:06 -0700 Subject: [PATCH] Fix for T77478: Quiet Conversion Error/Warning Quiet warning/error about int and float multiplication. Differential Revision: https://developer.blender.org/D7893 Reviewed by Ray Molenkamp --- source/blender/blenfont/intern/blf_glyph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 1867df3100c..f46a74a739a 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -316,7 +316,7 @@ GlyphBLF *blf_glyph_add(FontBLF *font, GlyphCacheBLF *gc, unsigned int index, un FT_Outline_EmboldenXY(&font->face->glyph->outline, extra_x, extra_y); if ((font->face->face_flags & FT_FACE_FLAG_FIXED_WIDTH) == 0) { /* Need to increase advance, but not for fixed-width fonts. */ - font->face->glyph->advance.x += (int) (extra_x * 1.05f); + font->face->glyph->advance.x += (FT_Pos)(((float)extra_x) * 1.05f); font->face->glyph->advance.y += extra_y; } else {