Skip to content

Commit e6cd3ef

Browse files
committed
Fix -Wsign-compare issue in MasmParser.cpp
1 parent 07c4f1d commit e6cd3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/MC/MCParser/MasmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,7 @@ bool MasmParser::parseEscapedString(std::string &Data) {
30893089
char Quote = getTok().getString().front();
30903090
StringRef Str = getTok().getStringContents();
30913091
Data.reserve(Str.size());
3092-
for (int i = 0, e = Str.size(); i != e; ++i) {
3092+
for (size_t i = 0, e = Str.size(); i != e; ++i) {
30933093
Data.push_back(Str[i]);
30943094
if (Str[i] == Quote) {
30953095
// MASM treats doubled delimiting quotes as an escaped delimiting quote.

0 commit comments

Comments
 (0)