[pypy-svn] pypy jitypes2: improve the comment

antocuni commits-noreply at bitbucket.org
Mon Dec 20 12:34:44 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40138:c4db19b270df
Date: 2010-12-20 12:32 +0100
http://bitbucket.org/pypy/pypy/changeset/c4db19b270df/

Log:	improve the comment

diff --git a/lib_pypy/_ctypes/basics.py b/lib_pypy/_ctypes/basics.py
--- a/lib_pypy/_ctypes/basics.py
+++ b/lib_pypy/_ctypes/basics.py
@@ -150,7 +150,7 @@
     return pointer(cdata)
 
 def cdata_from_address(self, address):
-    # fix the address, in case it's unsigned
+    # fix the address: turn it into as unsigned, in case it's a negative number
     address = address & (sys.maxint * 2 + 1)
     instance = self.__new__(self)
     lgt = getattr(self, '_length_', 1)


More information about the Pypy-commit mailing list