Skip to content

Commit 132def2

Browse files
Shane32gfoidl
andauthored
Update QRCoder/QRCodeGenerator.cs
Co-authored-by: Günther Foidl <[email protected]>
1 parent 72f7583 commit 132def2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/QRCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private static QRCodeData GenerateQrCode(BitArray bitArray, ECCLevel eccLevel, i
253253
foreach (var codeBlock in codeWordWithECC)
254254
{
255255
if (codeBlock.CodeWordsLength / 8 > i)
256-
pos = bitArray.CopyTo(interleavedData, i * 8 + codeBlock.CodeWordsOffset, pos, 8);
256+
pos = bitArray.CopyTo(interleavedData, (int)((uint)i * 8) + codeBlock.CodeWordsOffset, pos, 8);
257257
}
258258
}
259259
for (var i = 0; i < eccInfo.ECCPerBlock; i++)

0 commit comments

Comments
 (0)