mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-19 12:13:36 -04:00
Simplified a bit of code in JavaScript, TypeScript, Python.
This commit is contained in:
+2
-2
@@ -870,8 +870,8 @@ class _ReedSolomonGenerator(object):
|
||||
for b in data:
|
||||
factor = b ^ result.pop(0)
|
||||
result.append(0)
|
||||
for i in range(len(result)):
|
||||
result[i] ^= _ReedSolomonGenerator._multiply(self.coefficients[i], factor)
|
||||
for (i, coef) in enumerate(self.coefficients):
|
||||
result[i] ^= _ReedSolomonGenerator._multiply(coef, factor)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user