From: Douglas Gregor Date: Thu, 23 Jun 2011 20:15:25 +0000 (+0000) Subject: Bump Token::Kind from an unsigned char to an unsigned short, from Anton Lokhmotov X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f88c0133272129111ec32d7aa5eacf6e685c6fc;p=clang Bump Token::Kind from an unsigned char to an unsigned short, from Anton Lokhmotov git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133750 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Token.h b/include/clang/Lex/Token.h index edcfcc10d2..892938768a 100644 --- a/include/clang/Lex/Token.h +++ b/include/clang/Lex/Token.h @@ -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;