summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index fa165dda1..123c5a05a 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -230,7 +230,7 @@ def polyfit(x, y, deg, rcond=None):
See also polyval
"""
- order = deg + 1.
+ order = int(deg) + 1
x = NX.asarray(x) + 0.0
y = NX.asarray(y) + 0.0