Fix mismatched integer comparison (size_t/unsigned int vs int)
This commit is contained in:
parent
c9e03360e2
commit
332b173c82
2 changed files with 2 additions and 2 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue