Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
richardapeters committed Sep 26, 2024
1 parent de79119 commit f2eaa10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion preview/interfaces/QrCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace services
// drop the highest term, and store the rest of the coefficients in order of descending powers.
// Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D).
uint16_t root = 1;
for (uint8_t i = 0; i < coeff.size(); i++)
for (uint8_t i = 0; i != coeff.size(); ++i)
{
// Multiply the current product by (x - r^i)
for (uint8_t j = 0; j != coeff.size(); ++j)
Expand Down
1 change: 1 addition & 0 deletions preview/interfaces/QrCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ namespace services
return 16;
}

public:
static constexpr std::size_t MaxSizeNumeric(uint8_t version, QrCodeEcc ecc)
{
uint16_t moduleCount = numRawDataModulesForVersion[version];
Expand Down

0 comments on commit f2eaa10

Please sign in to comment.