@ -841,8 +841,8 @@ public final class QrCode {
int factor = (b ^ result[0]) & 0xFF;
System.arraycopy(result, 1, result, 0, result.length - 1);
result[result.length - 1] = 0;
for (int j = 0; j < result.length; j++)
result[j] ^= multiply(coefficients[j] & 0xFF, factor);
for (int i = 0; i < result.length; i++)
result[i] ^= multiply(coefficients[i] & 0xFF, factor);
}
return result;
@ -950,8 +950,8 @@ var qrcodegen = new function() {
var factor = b ^ result[0];
result.shift();
result.push(0);
for (var j = 0; j < result.length; j++)
result[j] ^= ReedSolomonGenerator.multiply(coefficients[j], factor);
for (var i = 0; i < result.length; i++)
result[i] ^= ReedSolomonGenerator.multiply(coefficients[i], factor);
});
};
@ -795,8 +795,8 @@ class _ReedSolomonGenerator(object):
factor = (b ^ result[0])
del result[0]
result.append(0)
for j in range(len(result)):
result[j] ^= _ReedSolomonGenerator.multiply(self.coefficients[j], factor)
for i in range(len(result)):
result[i] ^= _ReedSolomonGenerator.multiply(self.coefficients[i], factor)
return result