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

Skip to content

Commit 549c172

Browse files
committed
curly brackets
1 parent fb5943b commit 549c172

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5589,10 +5589,12 @@ cast_check_pointertype(PyObject *arg)
55895589
StgDictObject *dict;
55905590
ctypes_state *st = GLOBAL_STATE();
55915591

5592-
if (PyCPointerTypeObject_Check(st, arg))
5592+
if (PyCPointerTypeObject_Check(st, arg)) {
55935593
return 1;
5594-
if (PyCFuncPtrTypeObject_Check(st, arg))
5594+
}
5595+
if (PyCFuncPtrTypeObject_Check(st, arg)) {
55955596
return 1;
5597+
}
55965598
dict = PyType_stgdict(arg);
55975599
if (dict != NULL && dict->proto != NULL) {
55985600
if (PyUnicode_Check(dict->proto)

Modules/_ctypes/stgdict.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,9 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
524524
Py_XDECREF(pair);
525525
return -1;
526526
}
527-
if (PyCArrayTypeObject_Check(st, desc))
527+
if (PyCArrayTypeObject_Check(st, desc)) {
528528
arrays_seen = 1;
529+
}
529530
dict = PyType_stgdict(desc);
530531
if (dict == NULL) {
531532
Py_DECREF(pair);

0 commit comments

Comments
 (0)
0