Mercurial > emacs
diff src/ftfont.c @ 92407:7ba52081e343
(ftfont_pattern_entity): Fix aliasing violations.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sun, 02 Mar 2008 21:13:09 +0000 |
parents | c10a8c811515 |
children | 917824e47986 |
line wrap: on
line diff
--- a/src/ftfont.c Sun Mar 02 19:56:45 2008 +0000 +++ b/src/ftfont.c Sun Mar 02 21:13:09 2008 +0000 @@ -107,7 +107,7 @@ Lisp_Object entity; FcChar8 *file, *fontformat; FcCharSet *charset; - char *str; + FcChar8 *str; int numeric; double dbl; @@ -127,9 +127,9 @@ ASET (entity, FONT_FRAME_INDEX, frame); ASET (entity, FONT_OBJLIST_INDEX, Qnil); - if (FcPatternGetString (p, FC_FOUNDRY, 0, (FcChar8 **) &str) == FcResultMatch) + if (FcPatternGetString (p, FC_FOUNDRY, 0, &str) == FcResultMatch) ASET (entity, FONT_FOUNDRY_INDEX, intern_downcase (str, strlen (str))); - if (FcPatternGetString (p, FC_FAMILY, 0, (FcChar8 **) &str) == FcResultMatch) + if (FcPatternGetString (p, FC_FAMILY, 0, &str) == FcResultMatch) ASET (entity, FONT_FAMILY_INDEX, intern_downcase (str, strlen (str))); if (FcPatternGetInteger (p, FC_WEIGHT, 0, &numeric) == FcResultMatch) {