[x64] make polynomial_test compatible with strict dtype promotion

This commit is contained in:
Jake VanderPlas 2022-06-17 16:52:22 -07:00
parent 5236140b9f
commit 15a19969de

View File

@ -97,7 +97,7 @@ def roots(p, *, strip_zeros=True):
else:
roots = _roots_no_zeros(p)
# combine roots and zero roots
roots = hstack((roots, zeros(trailing_zeros, p.dtype)))
roots = hstack((roots, zeros(trailing_zeros, roots.dtype)))
return roots