[cfe-commits] r61269 - /cfe/trunk/include/clang/Lex/PTHLexer.h

Chris Lattner sabre at nondot.org
Fri Dec 19 15:51:24 PST 2008


Author: lattner
Date: Fri Dec 19 17:51:20 2008
New Revision: 61269

URL: http://llvm.org/viewvc/llvm-project?rev=61269&view=rev
Log:
avoid using a typedef that isn't always included from headers.

Modified:
    cfe/trunk/include/clang/Lex/PTHLexer.h

Modified: cfe/trunk/include/clang/Lex/PTHLexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PTHLexer.h?rev=61269&r1=61268&r2=61269&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/PTHLexer.h (original)
+++ cfe/trunk/include/clang/Lex/PTHLexer.h Fri Dec 19 17:51:20 2008
@@ -80,7 +80,7 @@
     // 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;
   }    
 





More information about the cfe-commits mailing list