Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b1f276

Browse files
committed
BUG: distutils: use // in a binary search (fixes #1604 on Python 3)
1 parent 07b7bf3 commit 2b1f276

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numpy/distutils/command/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def check_type_size(self, type_name, headers=None, include_dirs=None, library_di
271271
high = mid
272272
# Binary search:
273273
while low != high:
274-
mid = (high - low) / 2 + low
274+
mid = (high - low) // 2 + low
275275
try:
276276
self._compile(body % {'type': type_name, 'size': mid},
277277
headers, include_dirs, 'c')

0 commit comments

Comments
 (0)