mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
Merge pull request #2589 from ben-clayton/fix-warnings
Fix warnings about int comparisons of different signness
This commit is contained in:
commit
2c7c84c8ac
@ -2376,7 +2376,7 @@ public:
|
||||
return false;
|
||||
|
||||
// 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 ((*structure)[li].type->getFieldName() == (*right.structure)[ri].type->getFieldName()) {
|
||||
if (*(*structure)[li].type != *(*right.structure)[ri].type)
|
||||
|
@ -234,7 +234,7 @@ TEST_P(VulkanRelaxedTest, FromFile)
|
||||
|
||||
if (!resourceSetBindings.empty()) {
|
||||
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]);
|
||||
}
|
||||
|
||||
@ -302,4 +302,4 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
|
||||
} // anonymous namespace
|
||||
} // namespace glslangtest
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user