Fix -Wsign-compare issue in MasmParser.cpp

This commit is contained in:
Eric Astor 2020-11-04 15:43:18 -05:00
parent 07c4f1d10b
commit e6cd3eff17
1 changed files with 1 additions and 1 deletions

View File

@ -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.