diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-26 13:06:48 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-26 13:06:48 (GMT) |
commit | 3205e74d880a7cacd52ff032325de28acdec888d (patch) | |
tree | 812ed5da6e033c143ea39ddf7221330367d6210e | |
parent | 7e138027ff22ab9a75a8af893caf3f698287df38 (diff) | |
download | cpython-3205e74d880a7cacd52ff032325de28acdec888d.zip cpython-3205e74d880a7cacd52ff032325de28acdec888d.tar.gz cpython-3205e74d880a7cacd52ff032325de28acdec888d.tar.bz2 |
Fix declaration-after-statement of d49f65ff4f3c
-rw-r--r-- | Modules/_testcapimodule.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 6f87c13..4fd2d9f 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1645,11 +1645,15 @@ test_long_numbits(PyObject *self) 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) |