From: Chris Lattner Date: Fri, 19 Dec 2008 23:51:20 +0000 (+0000) Subject: avoid using a typedef that isn't always included from headers. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e36dabb2d9567c98734a1063ac7748dc37a999ce;p=clang avoid using a typedef that isn't always included from headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/PTHLexer.h b/include/clang/Lex/PTHLexer.h index b5655ffb81..479e45d2f3 100644 --- a/include/clang/Lex/PTHLexer.h +++ b/include/clang/Lex/PTHLexer.h @@ -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; }