diff --git a/src/galois/_polys/_dense.py b/src/galois/_polys/_dense.py index b1b3e289c..91b6050fe 100644 --- a/src/galois/_polys/_dense.py +++ b/src/galois/_polys/_dense.py @@ -487,7 +487,7 @@ def implementation(nonzero_degrees, nonzero_coeffs, primitive_element): # pragm # Test if 0 is a root if nonzero_degrees[-1] != 0: roots.append(0) - powers.append(-1) + powers.append(nonzero_degrees[-1]) # 0 has multiplicity equal to the lowest degree of x that is non-zero # Test if 1 is a root _sum = 0