Author: Armin Rigo <[email protected]>
Branch:
Changeset: r540:d26cfe243fe4
Date: 2012-06-27 11:27 +0200
http://bitbucket.org/cffi/cffi/changeset/d26cfe243fe4/
Log: Forgot a place in which to kill special-case support for 'None'.
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -2754,13 +2754,11 @@
farg = (CTypeDescrObject *)PyTuple_GET_ITEM(fargs, i);
/* ffi buffer: fill in the ffi for the i'th argument */
- if (farg == NULL) /* stands for a NULL pointer in the varargs */
- atype = &ffi_type_pointer;
- else {
- atype = fb_fill_type(fb, farg);
- if (PyErr_Occurred())
- return -1;
- }
+ assert(farg != NULL);
+ atype = fb_fill_type(fb, farg);
+ if (PyErr_Occurred())
+ return -1;
+
if (fb->atypes != NULL) {
fb->atypes[i] = atype;
/* exchange data size */
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit