From: Raymond Hettinger Date: Sun, 8 Sep 2013 05:06:35 +0000 (-0700) Subject: Minor code beautification. X-Git-Tag: v3.4.0a3~27^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=583cd03fd120d14ea65159e17a6407e9447a125e;p=python Minor code beautification. --- diff --git a/Objects/setobject.c b/Objects/setobject.c index 7364fca737..9df2fd322f 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -446,14 +446,13 @@ set_clear_internal(PySetObject *so) int table_is_malloced; Py_ssize_t fill; setentry small_copy[PySet_MINSIZE]; -#ifdef Py_DEBUG - Py_ssize_t i, n; - assert (PyAnySet_Check(so)); - n = so->mask + 1; - i = 0; +#ifdef Py_DEBUG + Py_ssize_t i = 0; + Py_ssize_t n = so->mask + 1; #endif + assert (PyAnySet_Check(so)); table = so->table; assert(table != NULL); table_is_malloced = table != so->smalltable; @@ -2366,7 +2365,7 @@ test_c_api(PySetObject *so) Py_ssize_t count; char *s; Py_ssize_t i; - PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x; + PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x=NULL; PyObject *ob = (PyObject *)so; Py_hash_t hash; PyObject *str;