mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-07 16:24:05 +00:00
chore: make list copy explicit in divide_polynomialcoeff
(#3706)
This commit is contained in:
parent
4fceca2b75
commit
e51f7df77d
@ -236,7 +236,7 @@ def divide_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> Polynomial
|
||||
"""
|
||||
Long polynomial division for two coefficient form polynomials ``a`` and ``b``
|
||||
"""
|
||||
a = [x for x in a]
|
||||
a = a.copy() # Make a copy since `a` is passed by reference
|
||||
o = []
|
||||
apos = len(a) - 1
|
||||
bpos = len(b) - 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user