1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-14 01:50:22 -08:00

(FAST_MAKE_GLYPH): Don't cast CHAR arg; character codes

are now wider than C chars.
This commit is contained in:
Karl Heuer 1997-03-10 21:14:32 +00:00
parent b6d61ffa7a
commit 000f46219b

View file

@ -892,8 +892,7 @@ typedef unsigned char UCHAR;
/* The FAST macros assume that we already know we're in an X window. */
/* Given a character code and a face ID, return the appropriate glyph. */
#define FAST_MAKE_GLYPH(CHAR, FACE) ((unsigned char) (CHAR) | \
((FACE) << CHARACTERBITS))
#define FAST_MAKE_GLYPH(char, face) ((char) | ((face) << CHARACTERBITS))
/* Return a glyph's character code. */
#define FAST_GLYPH_CHAR(glyph) ((glyph) & GLYPH_MASK_CHAR)