We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2949013 commit 39275f3Copy full SHA for 39275f3
examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp
@@ -84,7 +84,7 @@ BitMask<WaterHeaterDemandBitmap> WhmManufacturer::DetermineHeatingSources()
84
BitMask<WaterHeaterTypeBitmap> heaterTypes = dg->GetHeaterTypes();
85
86
uint8_t heaterDemandMask = 0;
87
- for (uint8_t idx = 0; idx < sizeof(waterHeaterTypeValues) / sizeof(waterHeaterTypeValues[0]); idx++)
+ for (uint16_t idx = 0; idx < static_cast<uint16_t>(sizeof(waterHeaterTypeValues) / sizeof(waterHeaterTypeValues[0])); idx++)
88
{
89
// Is this heating source being used?
90
if (heaterTypes.Raw() & waterHeaterTypeValues[idx])
0 commit comments