]>
Commit | Line | Data |
---|---|---|
17745ec0 JB |
1 | BufFilePut is called (through FontFilePutc macro) with some (shr-ed or not) |
2 | ints. int may be equal -1 (e.g. 0xFFFFFFFF or 0xFFxxxxxx >> 24). -1 has | |
3 | special meaning for BufFileRawFlush (just flush instead of write char and | |
4 | flush), so any FF values on buffer boundary disappeared... | |
5 | ||
6 | --- XFree86-4.1.0/xc/lib/font/include/bufio.h.orig Wed Jan 17 20:43:31 2001 | |
7 | +++ XFree86-4.1.0/xc/lib/font/include/bufio.h Mon Jul 2 13:25:41 2001 | |
8 | @@ -74,7 +74,7 @@ | |
9 | extern void BufFileFree ( BufFilePtr ); | |
10 | ||
11 | #define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : ((f)->eof = (*(f)->input) (f))) | |
12 | -#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->output) (c,f)) | |
13 | +#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = ((unsigned char)(c)) : (*(f)->output) ((unsigned char)(c),f)) | |
14 | #define BufFileSkip(f,c) ((f)->eof = (*(f)->skip) (f, c)) | |
15 | ||
16 | #ifndef TRUE |