From 8ff096c18cc923d5f3b936311d837edd91d8fbe9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 18 Mar 2011 19:49:10 -0700 Subject: * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. --- src/ftfont.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ftfont.c') diff --git a/src/ftfont.c b/src/ftfont.c index db6b29421dc..0c3e7bb6428 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -311,8 +311,9 @@ ftfont_resolve_generic_family (Lisp_Object family, FcPattern *pattern) if (FcPatternGetLangSet (pattern, FC_LANG, 0, &langset) != FcResultMatch) { /* This is to avoid the effect of locale. */ + static const FcChar8 lang[] = "en"; langset = FcLangSetCreate (); - FcLangSetAdd (langset, "en"); + FcLangSetAdd (langset, lang); FcPatternAddLangSet (pattern, FC_LANG, langset); FcLangSetDestroy (langset); } -- cgit v1.2.1