comparison 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
comparison
equal deleted inserted replaced
2571:bb44c48cffac 2572:92b93a12c014
253 for (int index = 0; index < font->maxglyph; index++) 253 for (int index = 0; index < font->maxglyph; index++)
254 { 254 {
255 DMBitmapGlyph *glyph = &font->glyphMap[index]; 255 DMBitmapGlyph *glyph = &font->glyphMap[index];
256 if (glyph->index >= 0) 256 if (glyph->index >= 0)
257 { 257 {
258 Uint8 *pixels = font->glyphs->pixels + font->gsize * glyph->index; 258 Uint8 *pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index;
259 259
260 // Each glyph has its table index and w/h stored 260 // Each glyph has its table index and w/h stored
261 if (!dmf_write_le16(fp, index) || 261 if (!dmf_write_le16(fp, index) ||
262 !dmf_write_byte(fp, glyph->width) || 262 !dmf_write_byte(fp, glyph->width) ||
263 !dmf_write_byte(fp, glyph->height)) 263 !dmf_write_byte(fp, glyph->height))