diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-09-04 13:08:27 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-09-04 13:08:27 +0000 |
commit | 2b1f27613a28461a3898466dc6386b23a95f5ec5 (patch) | |
tree | 039b58217b25a64ea25251d17f4cc0e247a63391 /numpy/distutils/command/config.py | |
parent | 07b7bf30c422f1c3335042691ce269a972b98954 (diff) | |
download | numpy-2b1f27613a28461a3898466dc6386b23a95f5ec5.tar.gz |
BUG: distutils: use // in a binary search (fixes #1604 on Python 3)
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 791e7db64..dafc7002f 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -271,7 +271,7 @@ int main () 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') |