Skip to content

Commit 5587067

Browse files
Update Modules/_ctypes/_ctypes.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 1685958 commit 5587067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ PyCPointerType_from_param_impl(PyObject *type, PyTypeObject *cls,
14191419
/* If we expect POINTER(<type>), but receive a <type> instance, accept
14201420
it by calling byref(<type>).
14211421
*/
1422-
if(typeinfo->proto == NULL){
1422+
if (typeinfo->proto == NULL) {
14231423
PyErr_SetString(
14241424
PyExc_TypeError,
14251425
"cannot convert argument: POINTER _type_ type is not set"

0 commit comments

Comments
 (0)