Avoid a signed/unsigned comparison warning with compilers that don't know how

to handle constant expressions.

llvm-svn: 191336
This commit is contained in:
Richard Smith 2013-09-24 22:13:21 +00:00
parent 7797c0d0f7
commit 5acb759f39
1 changed files with 1 additions and 1 deletions

View File

@ -1643,7 +1643,7 @@ const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr,
// In C++1y, we need to look ahead a few characters to see if this is a
// valid suffix for a string literal or a numeric literal (this could be
// the 'operator""if' defining a numeric literal operator).
const int MaxStandardSuffixLength = 3;
const unsigned MaxStandardSuffixLength = 3;
char Buffer[MaxStandardSuffixLength] = { C };
unsigned Consumed = Size;
unsigned Chars = 1;