summaryrefslogtreecommitdiff
path: root/Cython/Plex
diff options
context:
space:
mode:
authorStefan Behnel <scoder@users.berlios.de>2009-07-05 16:12:48 +0200
committerStefan Behnel <scoder@users.berlios.de>2009-07-05 16:12:48 +0200
commite19393799efb9d5dbee0c023f0a17291f7cb4c06 (patch)
treed18641a6fc680e302219b9b5c48cd63b58fe39b8 /Cython/Plex
parente76ea8ef220d67d32d8feb155ba65bfa45403039 (diff)
downloadcython-e19393799efb9d5dbee0c023f0a17291f7cb4c06.tar.gz
Py3 fixes
Diffstat (limited to 'Cython/Plex')
-rw-r--r--Cython/Plex/Transitions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Plex/Transitions.py b/Cython/Plex/Transitions.py
index 6caff5edf..add3b4487 100644
--- a/Cython/Plex/Transitions.py
+++ b/Cython/Plex/Transitions.py
@@ -131,7 +131,7 @@ class TransitionMap(object):
# loop invariant: map[lo] <= code < map[hi] and hi - lo >= 2
while hi - lo >= 4:
# Find midpoint truncated to even index
- mid = ((lo + hi) / 2) & ~1
+ mid = ((lo + hi) // 2) & ~1
if code < map[mid]:
hi = mid
else: