]> granicus.if.org Git - clang/commitdiff
avoid using a typedef that isn't always included from headers.
authorChris Lattner <sabre@nondot.org>
Fri, 19 Dec 2008 23:51:20 +0000 (23:51 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Dec 2008 23:51:20 +0000 (23:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61269 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/PTHLexer.h

index b5655ffb8111d3c651ef4dfa58fc52c5fadce081..479e45d2f32af5e33d63e568574aa38c8c6cb3e2 100644 (file)
@@ -80,7 +80,7 @@ public:
     // whether or not we are at a token with kind tok::eof or tok::l_paren.
     // Just read the first byte from the current token pointer to determine
     // its kind.
-    tok::TokenKind x = (tok::TokenKind) (uint8_t) *CurPtr;
+    tok::TokenKind x = (tok::TokenKind) (unsigned char) *CurPtr;
     return x == tok::eof ? 2 : x == tok::l_paren;
   }