diff options
author | Julien Cristau <jcristau@debian.org> | 2010-07-12 10:28:32 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2010-07-12 10:28:32 +0100 |
commit | 61b3d4b024d8146cb0e7659aa958045ceb72c482 (patch) | |
tree | 6beba2d42d920a7fab35ddaad0703c351c01166d /xkbscan.c | |
parent | a281386fa887e6bf4110840779aed46dd0ac89b6 (diff) |
Fix signedness issue with getc() return value
getc() and ungetc() return and take, respectively, an int rather than a
char to allow for error values as well. Oops.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkbscan.c')
-rw-r--r-- | xkbscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -269,7 +269,7 @@ tokText(int tok) } #endif -static char +static int scanchar(void) { if (readBufPos >= readBufLen) { @@ -285,7 +285,7 @@ scanchar(void) } static void -unscanchar(char c) +unscanchar(int c) { if (readBuf[--readBufPos] != c) { fprintf(stderr, "UNGETCHAR FAILED! Put back %c, was expecting %c at " |