changeset 21615:62989854d340

Avoid "pointer targets differ in signedness" warnings.
author eugeni
date Sat, 16 Dec 2006 19:19:27 +0000
parents 5d2ca7ca18b5
children 2704273f398d
files libass/ass_font.c libass/ass_fontconfig.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_font.c	Sat Dec 16 19:17:50 2006 +0000
+++ b/libass/ass_font.c	Sat Dec 16 19:19:27 2006 +0000
@@ -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);
--- a/libass/ass_fontconfig.c	Sat Dec 16 19:17:50 2006 +0000
+++ b/libass/ass_fontconfig.c	Sat Dec 16 19:19:27 2006 +0000
@@ -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);