Fix T42797: -Werror=sign-conversion Triggered in blf_glyph.c

Very minor, but since it was reported...
This commit is contained in:
Bastien Montagne 2014-12-04 10:23:21 +01:00
parent 3c1d286ca5
commit 2420a3c189
Notes: blender-bot 2023-02-14 09:45:59 +01:00
Referenced by issue #42797, -Werror=sign-conversion Triggered in blf_glyph.c
1 changed files with 2 additions and 2 deletions

View File

@ -262,8 +262,8 @@ GlyphBLF *blf_glyph_add(FontBLF *font, unsigned int index, unsigned int c)
g->xoff = -1;
g->yoff = -1;
bitmap = slot->bitmap;
g->width = bitmap.width;
g->height = bitmap.rows;
g->width = (int)bitmap.width;
g->height = (int)bitmap.rows;
if (g->width && g->height) {
if (sharp) {