Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r780:e3709927a1d3
Date: 2012-08-04 18:47 +0200
http://bitbucket.org/cffi/cffi/changeset/e3709927a1d3/

Log:    Be more precise: only 'struct *'.

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -1773,7 +1773,7 @@
             ((char **)data)[1] = NULL;
         }
         if (convert_from_object(data, argtype, obj) < 0) {
-            if (CData_Check(obj) && (argtype->ct_flags & CT_POINTER) &&
+            if (CData_Check(obj) && (argtype->ct_flags & CT_IS_PTR_TO_OWNED) &&
                    argtype->ct_itemdescr == ((CDataObject *)obj)->c_type) {
                 /* special case to make the life of verifier.py easier:
                    if the formal argument type is 'struct foo *' but
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to