Fix size_t to int warning

This commit is contained in:
Greg Fischer 2022-01-27 11:39:19 -07:00
parent 9ebd8ff6c1
commit 69565b1884

View File

@ -437,7 +437,7 @@ Id Builder::makeGenericType(spv::Op opcode, std::vector<spv::IdImmediate>& opera
continue; // Number mismatch, find next
bool match = true;
for (size_t op = 0; match && op < operands.size(); ++op) {
for (int op = 0; match && op < (int)operands.size(); ++op) {
match = (operands[op].isId ? type->getIdOperand(op) : type->getImmediateOperand(op)) == operands[op].word;
}
if (match)