mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2025-02-24 10:28:20 +00:00
Renamed loop variable from j to i in ReedSolomonGenerator.getRemainder() in most language versions.
This commit is contained in:
parent
fb702fd46e
commit
ff9fbba9cf
@ -841,8 +841,8 @@ public final class QrCode {
|
|||||||
int factor = (b ^ result[0]) & 0xFF;
|
int factor = (b ^ result[0]) & 0xFF;
|
||||||
System.arraycopy(result, 1, result, 0, result.length - 1);
|
System.arraycopy(result, 1, result, 0, result.length - 1);
|
||||||
result[result.length - 1] = 0;
|
result[result.length - 1] = 0;
|
||||||
for (int j = 0; j < result.length; j++)
|
for (int i = 0; i < result.length; i++)
|
||||||
result[j] ^= multiply(coefficients[j] & 0xFF, factor);
|
result[i] ^= multiply(coefficients[i] & 0xFF, factor);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -950,8 +950,8 @@ var qrcodegen = new function() {
|
|||||||
var factor = b ^ result[0];
|
var factor = b ^ result[0];
|
||||||
result.shift();
|
result.shift();
|
||||||
result.push(0);
|
result.push(0);
|
||||||
for (var j = 0; j < result.length; j++)
|
for (var i = 0; i < result.length; i++)
|
||||||
result[j] ^= ReedSolomonGenerator.multiply(coefficients[j], factor);
|
result[i] ^= ReedSolomonGenerator.multiply(coefficients[i], factor);
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
@ -795,8 +795,8 @@ class _ReedSolomonGenerator(object):
|
|||||||
factor = (b ^ result[0])
|
factor = (b ^ result[0])
|
||||||
del result[0]
|
del result[0]
|
||||||
result.append(0)
|
result.append(0)
|
||||||
for j in range(len(result)):
|
for i in range(len(result)):
|
||||||
result[j] ^= _ReedSolomonGenerator.multiply(self.coefficients[j], factor)
|
result[i] ^= _ReedSolomonGenerator.multiply(self.coefficients[i], factor)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user