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:
parent
b6d61ffa7a
commit
000f46219b
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue