]> granicus.if.org Git - python/commitdiff
detect 64-bit systems using maxsize not maxint
authorBenjamin Peterson <benjamin@python.org>
Wed, 21 Jan 2015 05:47:54 +0000 (00:47 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 21 Jan 2015 05:47:54 +0000 (00:47 -0500)
setup.py

index 7868b7b241ccac8b6057eab02bc56bef01c8786b..6a6ad239f12780125c1f76795ebb3c5cc462aaca 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -696,7 +696,7 @@ class PyBuildExt(build_ext):
         exts.append( Extension('audioop', ['audioop.c']) )
 
         # Disabled on 64-bit platforms
-        if sys.maxint != 9223372036854775807L:
+        if sys.maxsize != 9223372036854775807L:
             # Operations on images
             exts.append( Extension('imageop', ['imageop.c']) )
         else: