Mercurial > hg > dmlib
diff tools/fontconv.c @ 2572:92b93a12c014
Make some casts explicit instead of implicit, fixes some -pedantic warnings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 Mar 2022 22:36:48 +0200 |
parents | d56a0e86067a |
children | 9807ae37ad69 |
line wrap: on
line diff
--- a/tools/fontconv.c Wed Mar 02 23:23:05 2022 +0200 +++ b/tools/fontconv.c Thu Mar 10 22:36:48 2022 +0200 @@ -255,7 +255,7 @@ DMBitmapGlyph *glyph = &font->glyphMap[index]; if (glyph->index >= 0) { - Uint8 *pixels = font->glyphs->pixels + font->gsize * glyph->index; + Uint8 *pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index; // Each glyph has its table index and w/h stored if (!dmf_write_le16(fp, index) ||