[patch] pango-1-0 CVS doesn't compile



Hi,

modules/thai/thai-xft.c breaks on void pointer dereference.
The following patch adds the needed cast.

OK to commit?

ciao,
--Mitch



Index: modules/thai/thai-xft.c
===================================================================
RCS file: /cvs/gnome/pango/modules/thai/thai-xft.c,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 thai-xft.c
--- modules/thai/thai-xft.c     27 Jul 2002 13:50:04 -0000      1.1.2.2
+++ modules/thai/thai-xft.c     27 Jul 2002 18:42:13 -0000
@@ -183,7 +183,7 @@ make_glyph (ThaiFontInfo *font_info, uns
   }
 
   index = FT_Get_Char_Index (font_info->info.face, index);
-  if (index && index <= font_info->info.face->num_glyphs)
+  if (index && index <= ((FT_Face) font_info->info.face)->num_glyphs)
     return index;
   else
     return 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]