[MPlayer-dev-eng] [PATCH] fix type mismatches in libvo/font_load_ft.c
Tobias Diedrich
ranma at tdiedrich.de
Fri Jul 21 22:23:17 CEST 2006
Fixes the format string for the warning message on line 182 (%x
with long argument, %c with long argument).
Also, font_load_ft calls iconv with int pointers instead of size_t
pointers for (in|out)bytesleft.
--
Tobias PGP: http://9ac7e0bc.uguu.de
-------------- next part --------------
Index: mplayer/libvo/font_load_ft.c
===================================================================
--- mplayer/libvo/font_load_ft.c (revision 19150)
+++ mplayer/libvo/font_load_ft.c (working copy)
@@ -179,8 +179,8 @@
else {
glyph_index = FT_Get_Char_Index(face, uni_charmap ? character:code);
if (glyph_index==0) {
- WARNING("Glyph for char 0x%02x|U+%04X|%c not found.", code, character,
- code<' '||code>255 ? '.':code);
+ WARNING("Glyph for char 0x%02lx|U+%04lX|%c not found.", code, character,
+ code<' '||code>255 ? '.':(char)code);
desc->font[unicode?character:code] = -1;
continue;
}
@@ -737,8 +737,8 @@
FT_ULong o;
char *inbuf = &c;
char *outbuf = (char*)&o;
- int inbytesleft = 1;
- int outbytesleft = sizeof(FT_ULong);
+ size_t inbytesleft = 1;
+ size_t outbytesleft = sizeof(FT_ULong);
iconv(*cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
More information about the MPlayer-dev-eng
mailing list