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``
|
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 = []
|
o = []
|
||||||
apos = len(a) - 1
|
apos = len(a) - 1
|
||||||
bpos = len(b) - 1
|
bpos = len(b) - 1
|
||||||
|
|
Loading…
Reference in New Issue