[Python-checkins] cpython (3.3): Fix declaration-after-statement of d49f65ff4f3c
christian.heimes
python-checkins at python.org
Fri Jul 26 15:07:49 CEST 2013
http://hg.python.org/cpython/rev/708811f8470f
changeset: 84834:708811f8470f
branch: 3.3
user: Christian Heimes <christian at cheimes.de>
date: Fri Jul 26 15:06:48 2013 +0200
summary:
Fix declaration-after-statement of d49f65ff4f3c
files:
Modules/_testcapimodule.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1645,11 +1645,15 @@
int i;
for (i = 0; i < Py_ARRAY_LENGTH(testcases); ++i) {
- PyObject *plong = PyLong_FromLong(testcases[i].input);
+ size_t nbits;
+ int sign;
+ PyObject *plong;
+
+ plong = PyLong_FromLong(testcases[i].input);
if (plong == NULL)
return NULL;
- size_t nbits = _PyLong_NumBits(plong);
- int sign = _PyLong_Sign(plong);
+ nbits = _PyLong_NumBits(plong);
+ sign = _PyLong_Sign(plong);
Py_DECREF(plong);
if (nbits != testcases[i].nbits)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list