diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libversit/vcc.y | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2001-06-19 Christopher James Lahey <clahey@ximian.com> + + * libversit/vcc.y (LexBuf): Changed buf to an int here. + (lexGetQuotedPrintable): Changed cur to an int here. + 2001-06-18 Dan Winship <danw@ximian.com> * 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); |