aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-18 05:48:46 +0000
committerChris Lattner <sabre@nondot.org>2007-11-18 05:48:46 +0000
commitd6eca101d871bb2ce38e95e8c0f8dd905c11b729 (patch)
tree4c45469dbc4a20d933c9535b0e302c50c26263c8 /utils/TableGen/TGLexer.cpp
parentf7d004553baf3656cb1d3559d704aa1a89c2f878 (diff)
downloadexternal_llvm-d6eca101d871bb2ce38e95e8c0f8dd905c11b729.zip
external_llvm-d6eca101d871bb2ce38e95e8c0f8dd905c11b729.tar.gz
external_llvm-d6eca101d871bb2ce38e95e8c0f8dd905c11b729.tar.bz2
minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r--utils/TableGen/TGLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index e49af04..bd12f2c 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -56,7 +56,7 @@ int TGLexer::getNextChar() {
char CurChar = *CurPtr++;
switch (CurChar) {
default:
- return CurChar;
+ return (unsigned char)CurChar;
case 0:
// A nul character in the stream is either the end of the current buffer or
// a random nul in the file. Disambiguate that here.
@@ -84,7 +84,7 @@ int TGLexer::getNextChar() {
// Only treat a \n\r or \r\n as a single line.
if ((*CurPtr == '\n' || (*CurPtr == '\r')) &&
*CurPtr != CurChar)
- ++CurPtr; // Each the two char newline sequence.
+ ++CurPtr; // Eat the two char newline sequence.
++CurLineNo;
return '\n';