forked from OSchip/llvm-project
Fix -Wsign-compare issue in MasmParser.cpp
This commit is contained in:
parent
07c4f1d10b
commit
e6cd3eff17
|
@ -3089,7 +3089,7 @@ bool MasmParser::parseEscapedString(std::string &Data) {
|
|||
char Quote = getTok().getString().front();
|
||||
StringRef Str = getTok().getStringContents();
|
||||
Data.reserve(Str.size());
|
||||
for (int i = 0, e = Str.size(); i != e; ++i) {
|
||||
for (size_t i = 0, e = Str.size(); i != e; ++i) {
|
||||
Data.push_back(Str[i]);
|
||||
if (Str[i] == Quote) {
|
||||
// MASM treats doubled delimiting quotes as an escaped delimiting quote.
|
||||
|
|
Loading…
Reference in New Issue