Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 583cd03

Browse files
committed
Minor code beautification.
1 parent 4ea9080 commit 583cd03

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Objects/setobject.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,13 @@ set_clear_internal(PySetObject *so)
446446
int table_is_malloced;
447447
Py_ssize_t fill;
448448
setentry small_copy[PySet_MINSIZE];
449-
#ifdef Py_DEBUG
450-
Py_ssize_t i, n;
451-
assert (PyAnySet_Check(so));
452449

453-
n = so->mask + 1;
454-
i = 0;
450+
#ifdef Py_DEBUG
451+
Py_ssize_t i = 0;
452+
Py_ssize_t n = so->mask + 1;
455453
#endif
456454

455+
assert (PyAnySet_Check(so));
457456
table = so->table;
458457
assert(table != NULL);
459458
table_is_malloced = table != so->smalltable;
@@ -2366,7 +2365,7 @@ test_c_api(PySetObject *so)
23662365
Py_ssize_t count;
23672366
char *s;
23682367
Py_ssize_t i;
2369-
PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x;
2368+
PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x=NULL;
23702369
PyObject *ob = (PyObject *)so;
23712370
Py_hash_t hash;
23722371
PyObject *str;

0 commit comments

Comments
 (0)