From: Richard Smith Date: Tue, 24 Sep 2013 22:13:21 +0000 (+0000) Subject: Avoid a signed/unsigned comparison warning with compilers that don't know how X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fde25e14e8d89080fb9f32b7c0d65f869bb06ea;p=clang Avoid a signed/unsigned comparison warning with compilers that don't know how to handle constant expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191336 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index d8a5160e95..52565694a8 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -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;