aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 46637b53b3e..fec3c56b036 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1859,17 +1859,11 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0,
1859 { 1859 {
1860 unsigned code = face->font->driver->encode_char (face->font, c); 1860 unsigned code = face->font->driver->encode_char (face->font, c);
1861 Lisp_Object font_object; 1861 Lisp_Object font_object;
1862 /* Assignment to EMACS_INT stops GCC whining about limited range
1863 of data type. */
1864 EMACS_INT cod = code;
1865 1862
1866 if (code == FONT_INVALID_CODE) 1863 if (code == FONT_INVALID_CODE)
1867 return Qnil; 1864 return Qnil;
1868 XSETFONT (font_object, face->font); 1865 XSETFONT (font_object, face->font);
1869 if (cod <= MOST_POSITIVE_FIXNUM) 1866 return Fcons (font_object, INTEGER_TO_CONS (code));
1870 return Fcons (font_object, make_number (code));
1871 return Fcons (font_object, Fcons (make_number (code >> 16),
1872 make_number (code & 0xFFFF)));
1873 } 1867 }
1874 return Qnil; 1868 return Qnil;
1875} 1869}