summaryrefslogtreecommitdiff
path: root/src/fontset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 2c45c95c3a2..137d2895932 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -575,7 +575,7 @@ fontset_find_font (Lisp_Object fontset, int c, struct face *face,
break;
repertory = FONT_DEF_REPERTORY (RFONT_DEF_FONT_DEF (rfont_def));
- if (XFIXNUM (repertory) == charset_id)
+ if (FIXNUMP (repertory) && XFIXNUM_RAW (repertory) == charset_id)
{
charset_matched = i;
break;