Skip to content

Commit a95e5fa

Browse files
committed
Merge branch 'add_more_tests' into speed2
2 parents 308c231 + 28a04a8 commit a95e5fa

File tree

2 files changed

+349
-13
lines changed

2 files changed

+349
-13
lines changed

QRCoder/QRCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void WriteEccLevelAndVersion()
409409
#endif
410410
private static void TrimLeadingZeros(BitArray fStrEcc, ref int index, ref int count)
411411
{
412-
while (!fStrEcc[index])
412+
while (count > 0 && !fStrEcc[index])
413413
{
414414
index++;
415415
count--;

0 commit comments

Comments
 (0)