Commit 591651da by Ben Clayton

Fix warnings about int comparisons of different signness

Warnings in public headers can trigger warnings-as-errors.
parent c51a774e
...@@ -2376,7 +2376,7 @@ public: ...@@ -2376,7 +2376,7 @@ public:
return false; return false;
// Compare the names and types of all the members, which have to match // Compare the names and types of all the members, which have to match
for (int li = 0, ri = 0; li < structure->size() || ri < right.structure->size(); ++li, ++ri) { for (size_t li = 0, ri = 0; li < structure->size() || ri < right.structure->size(); ++li, ++ri) {
if (li < structure->size() && ri < right.structure->size()) { if (li < structure->size() && ri < right.structure->size()) {
if ((*structure)[li].type->getFieldName() == (*right.structure)[ri].type->getFieldName()) { if ((*structure)[li].type->getFieldName() == (*right.structure)[ri].type->getFieldName()) {
if (*(*structure)[li].type != *(*right.structure)[ri].type) if (*(*structure)[li].type != *(*right.structure)[ri].type)
......
...@@ -234,7 +234,7 @@ TEST_P(VulkanRelaxedTest, FromFile) ...@@ -234,7 +234,7 @@ TEST_P(VulkanRelaxedTest, FromFile)
if (!resourceSetBindings.empty()) { if (!resourceSetBindings.empty()) {
assert(resourceSetBindings.size() == fileNames.size()); assert(resourceSetBindings.size() == fileNames.size());
for (int i = 0; i < shaders.size(); i++) for (size_t i = 0; i < shaders.size(); i++)
shaders[i]->setResourceSetBinding(resourceSetBindings[i]); shaders[i]->setResourceSetBinding(resourceSetBindings[i]);
} }
...@@ -302,4 +302,4 @@ INSTANTIATE_TEST_SUITE_P( ...@@ -302,4 +302,4 @@ INSTANTIATE_TEST_SUITE_P(
} // anonymous namespace } // anonymous namespace
} // namespace glslangtest } // namespace glslangtest
#endif #endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment