Skip to content

Commit

Permalink
second attempt to fix conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
fessehaeve committed May 3, 2022
1 parent 0bf2893 commit 061db81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ CHIP_ERROR PowerSourceConfigurationAttrAccess::Read(const ConcreteReadAttributeP
}

std::qsort(orderEpPair, idx / 2, sizeof(uint16_t) * 2, compareOrder);
for (uint8_t i = 0; i < idx; i += 2U)
for (uint8_t i = 0; i < idx; i += (uint8_t) 2)
{
ReturnErrorOnFailure(encoder.Encode((uint16_t) orderEpPair[i + 1]));
}
Expand Down

0 comments on commit 061db81

Please sign in to comment.