[Numpy-svn] r8689 - trunk/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Sat Sep 4 08:08:27 CDT 2010


Author: ptvirtan
Date: 2010-09-04 08:08:27 -0500 (Sat, 04 Sep 2010)
New Revision: 8689

Modified:
   trunk/numpy/distutils/command/config.py
Log:
BUG: distutils: use // in a binary search (fixes #1604 on Python 3)

Modified: trunk/numpy/distutils/command/config.py
===================================================================
--- trunk/numpy/distutils/command/config.py	2010-09-04 10:17:19 UTC (rev 8688)
+++ trunk/numpy/distutils/command/config.py	2010-09-04 13:08:27 UTC (rev 8689)
@@ -271,7 +271,7 @@
         high = mid
         # Binary search:
         while low != high:
-            mid = (high - low) / 2 + low
+            mid = (high - low) // 2 + low
             try:
                 self._compile(body % {'type': type_name, 'size': mid},
                         headers, include_dirs, 'c')



More information about the Numpy-svn mailing list