char c;
int i, j;
char *sp, *sp2;
- wchar_t *wsp, *wsp2, wc;
+ wchar_t *wsp, *wsp2;
+ unsigned wc;
filepos fpos, fpos2, *fposp;
int flags = 0;
break;
case err_sfntbadglyph:
fpos = *va_arg(ap, filepos *);
- wc = va_arg(ap, wchar_t);
+ wc = va_arg(ap, unsigned);
sprintf(error,
"warning: character U+%04X references an non-existent glyph",
wc);
idx = (k + idDelta[j]) & 0xffff;
if (idx != 0) {
if (idx > sf->nglyphs) {
- error(err_sfntbadglyph, &sf->pos,
- (wchar_t)k);
+ error(err_sfntbadglyph, &sf->pos, k);
continue;
}
fi->bmp[k] = sfnt_indextoglyph(sf, idx);
for (k = startCode[j]; k <= endCode[j]; k++) {
if (startidx + k - startCode[j] >=
nglyphindex) {
- error(err_sfntbadglyph, &sf->pos,
- (wchar_t)k);
+ error(err_sfntbadglyph, &sf->pos, k);
continue;
}
idx = glyphIndexArray[startidx + k - startCode[j]];
if (idx != 0) {
idx = (idx + idDelta[j]) & 0xffff;
if (idx > sf->nglyphs) {
- error(err_sfntbadglyph, &sf->pos,
- (wchar_t)k);
+ error(err_sfntbadglyph, &sf->pos, k);
continue;
}
fi->bmp[k] = sfnt_indextoglyph(sf, idx);