diff options
author | Roy.li <lryer@msn.com> | 2022-03-24 22:07:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 14:07:22 +0000 |
commit | cab0b7715a951d5b542980fb1f7503b8d449a256 (patch) | |
tree | 3f052ea2376c7fa61264e16f98f1759eb0551ab5 | |
parent | b3c1790632737f6be2c0e1c2ea5bd844da9f17a9 (diff) | |
download | spirv-tools-cab0b7715a951d5b542980fb1f7503b8d449a256.tar.gz |
Use types have same widths in loop condition. (#4763)
-rw-r--r-- | source/val/validation_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/val/validation_state.cpp b/source/val/validation_state.cpp index 0be47b9a..6483335f 100644 --- a/source/val/validation_state.cpp +++ b/source/val/validation_state.cpp @@ -541,7 +541,7 @@ void ValidationState_t::RegisterInstruction(Instruction* inst) { if (inst->id()) all_definitions_.insert(std::make_pair(inst->id(), inst)); // Some validation checks are easier by getting all the consumers - for (uint16_t i = 0; i < inst->operands().size(); ++i) { + for (size_t i = 0; i < inst->operands().size(); ++i) { const spv_parsed_operand_t& operand = inst->operand(i); if ((SPV_OPERAND_TYPE_ID == operand.type) || (SPV_OPERAND_TYPE_TYPE_ID == operand.type)) { |