summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-07-08 21:35:16 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-07-12 21:07:41 +0200
commit5e4c2097648e94146da2ed790764f731659f1ced (patch)
treed4eff66e27e1129c31a6fb007d21c87d1fc4a7aa /tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
parentbcd20a74c9f2cd5920ecc5c1c0bb6d577db6cb50 (diff)
tests: fix a bunch of -Wsign-compare
Pick-to: 6.4 6.3 Change-Id: I603612ecd55c8ac92fc28152a3cc0e192b8b67f1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp')
-rw-r--r--tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp b/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
index 6b97d2d27..70330a223 100644
--- a/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
+++ b/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
@@ -953,7 +953,7 @@ private Q_SLOTS:
const std::vector<ShaderUniformBlock> activeUniformBlocks = m_glHelper.programUniformBlocks(shaderProgram.programId());
// THEN
- QCOMPARE(activeUniformBlocks.size(), 1);
+ QCOMPARE(activeUniformBlocks.size(), 1U);
const ShaderUniformBlock uniformBlock = activeUniformBlocks.front();
QCOMPARE(uniformBlock.m_activeUniformsCount, 1);
@@ -981,7 +981,7 @@ private Q_SLOTS:
std::vector<ShaderAttribute> activeAttributes = m_glHelper.programAttributesAndLocations(shaderProgram.programId());
// THEN
- QCOMPARE(activeAttributes.size(), 2);
+ QCOMPARE(activeAttributes.size(), 2U);
std::sort(activeAttributes.begin(), activeAttributes.end(), [] (const ShaderAttribute &a, const ShaderAttribute &b) { return a.m_name < b.m_name; });
const ShaderAttribute attribute1 = activeAttributes.at(0);
@@ -1012,7 +1012,7 @@ private Q_SLOTS:
std::vector<ShaderUniform> activeUniforms = m_glHelper.programUniformsAndLocations(shaderProgram.programId());
// THEN
- QCOMPARE(activeUniforms.size(), 4);
+ QCOMPARE(activeUniforms.size(), 4U);
std::sort(activeUniforms.begin(), activeUniforms.end(), [] (const ShaderUniform &a, const ShaderUniform &b) { return a.m_name < b.m_name; });
const ShaderUniform uniform1 = activeUniforms.at(0);