[pypy-svn] r77953 - pypy/trunk/pypy/module/_rawffi

arigo at codespeak.net arigo at codespeak.net
Thu Oct 14 18:35:50 CEST 2010


Author: arigo
Date: Thu Oct 14 18:35:48 2010
New Revision: 77953

Modified:
   pypy/trunk/pypy/module/_rawffi/array.py
Log:
Fix the comment: remove the XXX and says "it's documented".


Modified: pypy/trunk/pypy/module/_rawffi/array.py
==============================================================================
--- pypy/trunk/pypy/module/_rawffi/array.py	(original)
+++ pypy/trunk/pypy/module/_rawffi/array.py	Thu Oct 14 18:35:48 2010
@@ -97,10 +97,11 @@
 
 class W_ArrayInstance(W_DataInstance):
     def __init__(self, space, shape, length, address=r_uint(0)):
-        # XXX workaround for a bug in libffi on x86_64: make sure that
+        # Workaround for a strange behavior of libffi: make sure that
         # we always have at least 8 bytes.  For W_ArrayInstances that are
         # used as the result value of a function call, ffi_call() writes
         # 8 bytes into it even if the function's result type asks for less.
+        # This strange behavior is documented.
         memsize = shape.size * length
         if memsize < 8:
             memsize = 8



More information about the Pypy-commit mailing list