Added spaces around multiplication operators in QrTemplate.getAlignmentPatternPositions(), for consistency with other code.

pull/134/head
Project Nayuki 3 years ago
parent 07725617d7
commit 8640ddf8a5

@ -241,7 +241,7 @@ final class QrTemplate {
else { else {
int numAlign = version / 7 + 2; int numAlign = version / 7 + 2;
int step = (version == 32) ? 26 : int step = (version == 32) ? 26 :
(version*4 + numAlign*2 + 1) / (numAlign*2 - 2) * 2; (version * 4 + numAlign * 2 + 1) / (numAlign * 2 - 2) * 2;
int[] result = new int[numAlign]; int[] result = new int[numAlign];
result[0] = 6; result[0] = 6;
for (int i = result.length - 1, pos = size - 7; i >= 1; i--, pos -= step) for (int i = result.length - 1, pos = size - 7; i >= 1; i--, pos -= step)

Loading…
Cancel
Save