diff --git a/tools/convbdf.c b/tools/convbdf.c index 58ab2645b4..4602b9e633 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -1347,7 +1347,7 @@ int gen_c_source(struct font* pf, char *path) if (pf->offset) { /* output offset table */ fprintf(ofp, "/* Character->glyph mapping. */\n" - "static const unsigned short _sysfont_offset[] = {\n"); + "static const unsigned %s _sysfont_offset[] = {\n", pf->bits_size > 0xffdb ? "long" : "short"); for (i=0; isize; ++i) { int offset = pf->offset[i];