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;
|
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)
|
|||||||
|
|
||||||
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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user