Fix declaration-after-statement of d49f65ff4f3c
This commit is contained in:
parent
7e138027ff
commit
3205e74d88
|
@ -1645,11 +1645,15 @@ test_long_numbits(PyObject *self)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < Py_ARRAY_LENGTH(testcases); ++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)
|
if (plong == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
size_t nbits = _PyLong_NumBits(plong);
|
nbits = _PyLong_NumBits(plong);
|
||||||
int sign = _PyLong_Sign(plong);
|
sign = _PyLong_Sign(plong);
|
||||||
|
|
||||||
Py_DECREF(plong);
|
Py_DECREF(plong);
|
||||||
if (nbits != testcases[i].nbits)
|
if (nbits != testcases[i].nbits)
|
||||||
|
|
Loading…
Reference in New Issue