[Scipy-svn] r5035 - trunk/scipy/spatial

scipy-svn@scip... scipy-svn@scip...
Mon Nov 10 04:34:30 CST 2008


Author: cdavid
Date: 2008-11-10 04:34:25 -0600 (Mon, 10 Nov 2008)
New Revision: 5035

Modified:
   trunk/scipy/spatial/ckdtree.pyx
Log:
Make inner indices 32 bits integers instead of long for 64 bits support.

Modified: trunk/scipy/spatial/ckdtree.pyx
===================================================================
--- trunk/scipy/spatial/ckdtree.pyx	2008-11-10 03:05:57 UTC (rev 5034)
+++ trunk/scipy/spatial/ckdtree.pyx	2008-11-10 10:34:25 UTC (rev 5035)
@@ -218,7 +218,7 @@
             raise ValueError("leafsize must be at least 1")
         self.maxes = np.ascontiguousarray(np.amax(self.data,axis=0))
         self.mins = np.ascontiguousarray(np.amin(self.data,axis=0))
-        self.indices = np.ascontiguousarray(np.arange(self.n,dtype=np.int))
+        self.indices = np.ascontiguousarray(np.arange(self.n,dtype=np.int32))
 
         inner_data = self.data
         self.raw_data = <double*>inner_data.data



More information about the Scipy-svn mailing list