]> granicus.if.org Git - clang/commitdiff
Bump Token::Kind from an unsigned char to an unsigned short, from Anton Lokhmotov
authorDouglas Gregor <dgregor@apple.com>
Thu, 23 Jun 2011 20:15:25 +0000 (20:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 23 Jun 2011 20:15:25 +0000 (20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133750 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Token.h

index edcfcc10d2ee316fa88e3f596f9430f1781dd6e2..892938768ab8451026f0bc10eee4bdd818850dda 100644 (file)
@@ -63,9 +63,9 @@ class Token {
 
   /// 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;