From: NAKAMURA Takumi Date: Wed, 24 Jun 2015 06:40:09 +0000 (+0000) Subject: MILexer.cpp: Try to fix a warning. [-Wsign-compare] X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=76bee1a4507e0931e0790457e54d0ac6472f27c0 MILexer.cpp: Try to fix a warning. [-Wsign-compare] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240525 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MIRParser/MILexer.cpp b/lib/CodeGen/MIRParser/MILexer.cpp index b836221d9f0..0933ae138f2 100644 --- a/lib/CodeGen/MIRParser/MILexer.cpp +++ b/lib/CodeGen/MIRParser/MILexer.cpp @@ -33,7 +33,7 @@ public: bool isEOF() const { return Ptr == End; } - char peek(unsigned I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } + char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } void advance() { ++Ptr; }