From 2e156596a6e8099c3f540ca362b1415613ed30dd Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 19 Jun 2001 16:58:09 +0000 Subject: Changed buf to an int here. (lexGetQuotedPrintable): Changed cur to an int 2001-06-19 Christopher James Lahey * libversit/vcc.y (LexBuf): Changed buf to an int here. (lexGetQuotedPrintable): Changed cur to an int here. svn path=/trunk/; revision=10292 --- ChangeLog | 5 +++++ libversit/vcc.y | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b9ca54477..1e65ccbc05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-19 Christopher James Lahey + + * libversit/vcc.y (LexBuf): Changed buf to an int here. + (lexGetQuotedPrintable): Changed cur to an int here. + 2001-06-18 Dan Winship * configure.in: Add "--with-db3" to fill in both diff --git a/libversit/vcc.y b/libversit/vcc.y index 5c093c8044..4cf92c5a3f 100644 --- a/libversit/vcc.y +++ b/libversit/vcc.y @@ -511,11 +511,11 @@ struct LexBuf { unsigned long curPos; unsigned long inputLen; /* lookahead buffer */ - /* -- lookahead buffer is short instead of char so that EOF + /* -- lookahead buffer is int instead of char so that EOF / can be represented correctly. */ unsigned long len; - short buf[MAX_LEX_LOOKAHEAD]; + int buf[MAX_LEX_LOOKAHEAD]; unsigned long getPtr; /* context stack */ unsigned long lexModeStackTop; @@ -988,7 +988,7 @@ static int match_begin_end_name(int end) { static char* lexGetQuotedPrintable() { - char cur; + int cur; lexClearToken(); do { @@ -1032,13 +1032,13 @@ static char* lexGetQuotedPrintable() lexPushLookaheadc(cur); goto EndString; } - case (char)EOF: + case EOF: break; default: lexAppendc(cur); break; } /* switch */ - } while (cur != (char)EOF); + } while (cur != EOF); EndString: lexAppendc(0); -- cgit v1.2.3