aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-25 14:57:21 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-25 14:57:21 +0000
commitb6c08a64145485a7c233761220b8d82b74aa7546 (patch)
tree88e5aef6cfbb979551c2bf41a8db448d8106c35d /lib/Lex/Lexer.cpp
parent7d56bfe37d039fa3f4b91ed8d079253159177740 (diff)
Lexer.cpp: Fix a warning with ptrdiff_t on i686. [-Wsign-compare]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r--lib/Lex/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp
index 74efcfb25a..429780eaea 100644
--- a/lib/Lex/Lexer.cpp
+++ b/lib/Lex/Lexer.cpp
@@ -2749,7 +2749,7 @@ uint32_t Lexer::tryReadUCN(const char *&StartPtr, const char *SlashLoc,
if (Result) {
Result->setFlag(Token::HasUCN);
- if (CurPtr - StartPtr == NumHexDigits + 2)
+ if (CurPtr - StartPtr == (ptrdiff_t)NumHexDigits + 2)
StartPtr = CurPtr;
else
while (StartPtr != CurPtr)