Skip to content

Commit

Permalink
Merge branch 'add_more_tests' into speed2
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed May 19, 2024
2 parents 308c231 + 28a04a8 commit a95e5fa
Show file tree
Hide file tree
Showing 2 changed files with 349 additions and 13 deletions.
2 changes: 1 addition & 1 deletion QRCoder/QRCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ void WriteEccLevelAndVersion()
#endif
private static void TrimLeadingZeros(BitArray fStrEcc, ref int index, ref int count)
{
while (!fStrEcc[index])
while (count > 0 && !fStrEcc[index])
{
index++;
count--;
Expand Down
Loading

0 comments on commit a95e5fa

Please sign in to comment.