Fix mismatched integer comparison (size_t/unsigned int vs int)

This commit is contained in:
baldurk 2019-01-30 17:29:17 +00:00
parent c9e03360e2
commit 332b173c82
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ void Builder::postProcess(Instruction& inst)
Instruction *idx = module.getInstruction(accessChain->getIdOperand(i));
if (type->getOpCode() == OpTypeStruct) {
assert(idx->getOpCode() == OpConstant);
int c = idx->getImmediateOperand(0);
unsigned int c = idx->getImmediateOperand(0);
const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
if (decoration.get()->getOpCode() == OpMemberDecorate &&