From e36dabb2d9567c98734a1063ac7748dc37a999ce Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Dec 2008 23:51:20 +0000 Subject: [PATCH] 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 --- include/clang/Lex/PTHLexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0