Renamed loop variable from j to i in ReedSolomonGenerator.getRemainder() in most language versions.

This commit is contained in:
Project Nayuki 2016-06-14 17:10:55 +00:00
parent fb702fd46e
commit ff9fbba9cf
3 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);
});
return result;
};

View File

@ -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