From 61b3d4b024d8146cb0e7659aa958045ceb72c482 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 12 Jul 2010 10:28:32 +0100 Subject: 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 --- xkbscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xkbscan.c b/xkbscan.c index 1e7902d..03193e2 100644 --- a/xkbscan.c +++ b/xkbscan.c @@ -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 " -- cgit v1.2.3