There was an error while loading. Please reload this page.
1 parent bd9140d commit a117c89Copy full SHA for a117c89
2 files changed
src/channeltester/RGBChase.cpp
@@ -67,7 +67,7 @@ int TestPatternRGBChase::SetupTest(void) {
67
}
68
69
// Make sure we have a valid set of triplets
70
- while (m_colorPattern.size() % 3)
+ while (m_colorPattern.size() < 3 || m_colorPattern.size() % 3)
71
m_colorPattern.push_back(0);
72
73
char* c = m_testData;
src/channeltester/RGBCycle.cpp
@@ -64,7 +64,7 @@ int TestPatternRGBCycle::SetupTest(void) {
64
65
66
- while (m_colorPattern.size() % 3) {
+ while (m_colorPattern.size() < 3 || m_colorPattern.size() % 3) {
0 commit comments