[Numpy-svn] r8691 - branches/1.5.x/numpy/distutils/command

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


Author: ptvirtan
Date: 2010-09-04 08:28:23 -0500 (Sat, 04 Sep 2010)
New Revision: 8691

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

Modified: branches/1.5.x/numpy/distutils/command/config.py
===================================================================
--- branches/1.5.x/numpy/distutils/command/config.py	2010-09-04 13:08:43 UTC (rev 8690)
+++ branches/1.5.x/numpy/distutils/command/config.py	2010-09-04 13:28:23 UTC (rev 8691)
@@ -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