Commits

Amaury Forgeot d'Arc committed e94e112

Another remaining sys.maxint

Comments (0)

Files changed (1)

lib_pypy/_ctypes/basics.py

 
 def cdata_from_address(self, address):
     # fix the address: turn it into as unsigned, in case it's a negative number
-    address = address & (sys.maxint * 2 + 1)
+    address = address & (sys.maxsize * 2 + 1)
     instance = self.__new__(self)
     lgt = getattr(self, '_length_', 1)
     instance._buffer = self._ffiarray.fromaddress(address, lgt)