mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix declaration-after-statement of d49f65ff4f3c
This commit is contained in:
parent
7e138027ff
commit
3205e74d88
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue