Merge pull request #2878 from greg-lunarg/vulkan-1.3-A

Fix size_t to int warning
This commit is contained in:
Greg Fischer 2022-01-27 12:13:43 -07:00 committed by GitHub
commit a7aae72ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)