Skip to content

Commit fd49cca

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

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
@@ -1025,7 +1025,7 @@ private static byte[] BinaryStringToBitBlockByteList(BitArray bitString, int off
10251025
const int blockSize = 8;
10261026
if (count % blockSize != 0)
10271027
throw new ArgumentException("Count must be a multiple of 8.", nameof(count));
1028-
var numberOfBlocks = count / blockSize;
1028+
var numberOfBlocks = (int)((uint)count / blockSize);
10291029
var blocklist = new byte[numberOfBlocks];
10301030

10311031
int j = 0;

0 commit comments

Comments
 (0)