[pypy-svn] pypy jitypes2: make test_prototypes passing. We need a better way for dealing with this mess, though
antocuni
commits-noreply at bitbucket.org
Tue Jan 4 14:04:50 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40377:b822c7a62922
Date: 2011-01-03 16:48 +0100
http://bitbucket.org/pypy/pypy/changeset/b822c7a62922/
Log: make test_prototypes passing. We need a better way for dealing with
this mess, though
diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py
--- a/lib_pypy/_ctypes/function.py
+++ b/lib_pypy/_ctypes/function.py
@@ -452,7 +452,7 @@
address = result
result = restype()
result._buffer[0] = address
- elif restype._ffishape == 'z':
+ elif restype._ffishape == 'z' or restype._ffishape == 'Z':
result = restype(result).value # XXX: maybe it's the general way to do it?
elif self._is_struct_shape(restype._ffishape):
result = restype.from_address(result)
More information about the Pypy-commit
mailing list