[Numpy-svn] r3340 - trunk/numpy/lib

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Oct 14 23:37:32 CDT 2006


Author: charris
Date: 2006-10-14 23:37:30 -0500 (Sat, 14 Oct 2006)
New Revision: 3340

Modified:
   trunk/numpy/lib/polynomial.py
Log:
Make sure order is an integer

Modified: trunk/numpy/lib/polynomial.py
===================================================================
--- trunk/numpy/lib/polynomial.py	2006-10-15 03:05:06 UTC (rev 3339)
+++ trunk/numpy/lib/polynomial.py	2006-10-15 04:37:30 UTC (rev 3340)
@@ -230,7 +230,7 @@
     See also polyval
 
     """
-    order = deg + 1.
+    order = int(deg) + 1
     x = NX.asarray(x) + 0.0
     y = NX.asarray(y) + 0.0
 



More information about the Numpy-svn mailing list