8000 curly brackets · python/cpython@618f2bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 618f2bf

Browse files
committed
curly brackets
1 parent 549c172
8000
 commit 618f2bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 4 additions & 2 deletions
3999
Original file line numberDiff line numberDiff line change
@@ -3996,11 +3996,13 @@ _build_callargs(PyCFuncPtrObject *self, PyObject *argtypes,
39963996
((PyTypeObject *)ob)->tp_name);
39973997
goto error;
39983998
}
-
if (PyCArrayTypeObject_Check(st, ob))
3999+
if (PyCArrayTypeObject_Check(st, ob)) {
40004000
ob = _PyObject_CallNoArgs(ob);
4001-
else
4001+
}
4002+
else {
40024003
/* Create an instance of the pointed-to type */
40034004
ob = _PyObject_CallNoArgs(dict->proto);
4005+
}
40044006
/*
40054007
XXX Is the following correct any longer?
40064008
We must not pass a byref() to the array then but

0 commit comments

Comments
 (0)
0