[MPlayer-cvslog] r21631 - in trunk/libass: ass_font.c ass_fontconfig.c

eugeni subversion at mplayerhq.hu
Sat Dec 16 20:19:27 CET 2006


Author: eugeni
Date: Sat Dec 16 20:19:27 2006
New Revision: 21631

Modified:
   trunk/libass/ass_font.c
   trunk/libass/ass_fontconfig.c

Log:
Avoid "pointer targets differ in signedness" warnings.


Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c	(original)
+++ trunk/libass/ass_font.c	Sat Dec 16 20:19:27 2006
@@ -78,7 +78,7 @@
 	
 	mem_idx = find_font(library, path);
 	if (mem_idx >= 0) {
-		error = FT_New_Memory_Face(ftlibrary, library->fontdata[mem_idx].data,
+		error = FT_New_Memory_Face(ftlibrary, (unsigned char*)library->fontdata[mem_idx].data,
 					   library->fontdata[mem_idx].size, 0, &face);
 		if (error) {
 			mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningMemoryFont, path);

Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c	(original)
+++ trunk/libass/ass_fontconfig.c	Sat Dec 16 20:19:27 2006
@@ -276,13 +276,13 @@
 
 #else // (FC_VERSION >= 20402)
 
-	rc = FT_New_Memory_Face(ftlibrary, data, data_size, 0, &face);
+	rc = FT_New_Memory_Face(ftlibrary, (unsigned char*)data, data_size, 0, &face);
 	if (rc) {
 		mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningMemoryFont, name);
 		return;
 	}
 
-	pattern = FcFreeTypeQueryFace(face, name, 0, FcConfigGetBlanks(priv->config));
+	pattern = FcFreeTypeQueryFace(face, (unsigned char*)name, 0, FcConfigGetBlanks(priv->config));
 	if (!pattern) {
 		mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FunctionCallFailed, "FcFreeTypeQueryFace");
 		FT_Done_Face(face);



More information about the MPlayer-cvslog mailing list