Author: Armin Rigo <[email protected]>
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
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit