diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-24 22:13:21 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-24 22:13:21 +0000 |
commit | 5acb759f39326dd3c84c2430881a9a8d25c16e7e (patch) | |
tree | 537caeccf2f87f244a2b12adf9aefaab24355caa /clang/lib/Lex/Lexer.cpp | |
parent | 7797c0d0f75d58470ad435c362cbeabbcf699ba0 (diff) | |
download | bcm5719-llvm-5acb759f39326dd3c84c2430881a9a8d25c16e7e.tar.gz bcm5719-llvm-5acb759f39326dd3c84c2430881a9a8d25c16e7e.zip |
Avoid a signed/unsigned comparison warning with compilers that don't know how
to handle constant expressions.
llvm-svn: 191336
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index d8a5160e95d..52565694a8f 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/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; |