]> git.eshelyaron.com Git - emacs.git/commitdiff
(FAST_MAKE_GLYPH): Don't cast CHAR arg; character codes
authorKarl Heuer <kwzh@gnu.org>
Mon, 10 Mar 1997 21:14:32 +0000 (21:14 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 10 Mar 1997 21:14:32 +0000 (21:14 +0000)
are now wider than C chars.

src/lisp.h

index 399053fc1560a0c76fc18f2e2c3156f8cfd7a710..69f0d2ffd9c55d0d72d0cc09f6251fa1a2eb9ee9 100644 (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)