[cfe-commits] r133750 - /cfe/trunk/include/clang/Lex/Token.h

Douglas Gregor dgregor at apple.com
Thu Jun 23 13:15:25 PDT 2011


Author: dgregor
Date: Thu Jun 23 15:15:25 2011
New Revision: 133750

URL: http://llvm.org/viewvc/llvm-project?rev=133750&view=rev
Log:
Bump Token::Kind from an unsigned char to an unsigned short, from Anton Lokhmotov

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

Modified: cfe/trunk/include/clang/Lex/Token.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Token.h?rev=133750&r1=133749&r2=133750&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Token.h (original)
+++ cfe/trunk/include/clang/Lex/Token.h Thu Jun 23 15:15:25 2011
@@ -63,9 +63,9 @@
 
   /// Kind - The actual flavor of token this is.
   ///
-  unsigned char Kind; // DON'T make Kind a 'tok::TokenKind';
-                      // MSVC will treat it as a signed char and
-                      // TokenKinds > 127 won't be handled correctly.
+  unsigned short Kind; // DON'T make Kind a 'tok::TokenKind';
+                       // MSVC will treat it as a signed char and
+                       // TokenKinds > 127 won't be handled correctly.
 
   /// Flags - Bits we track about this token, members of the TokenFlags enum.
   unsigned char Flags;





More information about the cfe-commits mailing list