[pypy-svn] pypy jitypes2: fix the last occurence of types.void_p

antocuni commits-noreply at bitbucket.org
Fri Mar 25 15:07:40 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r42937:f14e1bafc32c
Date: 2011-03-25 15:07 +0100
http://bitbucket.org/pypy/pypy/changeset/f14e1bafc32c/

Log:	fix the last occurence of types.void_p

diff --git a/lib_pypy/_ctypes/pointer.py b/lib_pypy/_ctypes/pointer.py
--- a/lib_pypy/_ctypes/pointer.py
+++ b/lib_pypy/_ctypes/pointer.py
@@ -121,7 +121,7 @@
         # for now, we always allow types.pointer, else a lot of tests
         # break. We need to rethink how pointers are represented, though
         if my_ffitype.deref_pointer() != ffitype.deref_pointer() and \
-                ffitype is not _ffi.types.pointer:
+                ffitype is not _ffi.types.void_p:
             raise ArgumentError, "expected %s instance, got %s" % (type(self), ffitype)
         return self._get_buffer_value()
 


More information about the Pypy-commit mailing list