From b6c08a64145485a7c233761220b8d82b74aa7546 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 25 Jan 2013 14:57:21 +0000 Subject: [PATCH] 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 --- lib/Lex/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0