Tweaked QrCode.drawFormatBits() to use end-exclusive range in second copy for clarity, in most languages.

This commit is contained in:
Project Nayuki
2018-10-13 19:54:30 +00:00
parent e883e31f0a
commit f2ea49b7d4
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ void QrCode::drawFormatBits(int mask) {
setFunctionModule(14 - i, 8, getBit(bits, i));
// Draw second copy
for (int i = 0; i <= 7; i++)
for (int i = 0; i < 8; i++)
setFunctionModule(size - 1 - i, 8, getBit(bits, i));
for (int i = 8; i < 15; i++)
setFunctionModule(8, size - 15 + i, getBit(bits, i));