[llvm] r240525 - MILexer.cpp: Try to fix a warning. [-Wsign-compare]
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jun 23 23:40:09 PDT 2015
Author: chapuni
Date: Wed Jun 24 01:40:09 2015
New Revision: 240525
URL: http://llvm.org/viewvc/llvm-project?rev=240525&view=rev
Log:
MILexer.cpp: Try to fix a warning. [-Wsign-compare]
Modified:
llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp
Modified: llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp?rev=240525&r1=240524&r2=240525&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp Wed Jun 24 01:40:09 2015
@@ -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; }
More information about the llvm-commits
mailing list