diff options
| author | Karl Heuer | 1997-03-10 21:14:32 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-03-10 21:14:32 +0000 |
| commit | 000f46219b02f8fdef2d4c95c56fd0264865f7fa (patch) | |
| tree | 9e53b842c072cf3c38b145157933e53b039c8083 /src | |
| parent | b6d61ffa7afcde7e6e29538821e20b841541e18a (diff) | |
| download | emacs-000f46219b02f8fdef2d4c95c56fd0264865f7fa.tar.gz emacs-000f46219b02f8fdef2d4c95c56fd0264865f7fa.zip | |
(FAST_MAKE_GLYPH): Don't cast CHAR arg; character codes
are now wider than C chars.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h index 399053fc156..69f0d2ffd9c 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -892,8 +892,7 @@ typedef unsigned char UCHAR; | |||
| 892 | /* The FAST macros assume that we already know we're in an X window. */ | 892 | /* The FAST macros assume that we already know we're in an X window. */ |
| 893 | 893 | ||
| 894 | /* Given a character code and a face ID, return the appropriate glyph. */ | 894 | /* Given a character code and a face ID, return the appropriate glyph. */ |
| 895 | #define FAST_MAKE_GLYPH(CHAR, FACE) ((unsigned char) (CHAR) | \ | 895 | #define FAST_MAKE_GLYPH(char, face) ((char) | ((face) << CHARACTERBITS)) |
| 896 | ((FACE) << CHARACTERBITS)) | ||
| 897 | 896 | ||
| 898 | /* Return a glyph's character code. */ | 897 | /* Return a glyph's character code. */ |
| 899 | #define FAST_GLYPH_CHAR(glyph) ((glyph) & GLYPH_MASK_CHAR) | 898 | #define FAST_GLYPH_CHAR(glyph) ((glyph) & GLYPH_MASK_CHAR) |