r191336 - Avoid a signed/unsigned comparison warning with compilers that don't know how
Richard Smith
richard-llvm at metafoo.co.uk
Tue Sep 24 15:13:21 PDT 2013
Author: rsmith
Date: Tue Sep 24 17:13:21 2013
New Revision: 191336
URL: http://llvm.org/viewvc/llvm-project?rev=191336&view=rev
Log:
Avoid a signed/unsigned comparison warning with compilers that don't know how
to handle constant expressions.
Modified:
cfe/trunk/lib/Lex/Lexer.cpp
Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=191336&r1=191335&r2=191336&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Tue Sep 24 17:13:21 2013
@@ -1643,7 +1643,7 @@ const char *Lexer::LexUDSuffix(Token &Re
// 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;
More information about the cfe-commits
mailing list