Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e13802 commit 3205e74Copy full SHA for 3205e74
1 file changed
Modules/_testcapimodule.c
@@ -1645,11 +1645,15 @@ test_long_numbits(PyObject *self)
1645
int i;
1646
1647
for (i = 0; i < Py_ARRAY_LENGTH(testcases); ++i) {
1648
- PyObject *plong = PyLong_FromLong(testcases[i].input);
+ size_t nbits;
1649
+ int sign;
1650
+ PyObject *plong;
1651
+
1652
+ plong = PyLong_FromLong(testcases[i].input);
1653
if (plong == NULL)
1654
return NULL;
- size_t nbits = _PyLong_NumBits(plong);
- int sign = _PyLong_Sign(plong);
1655
+ nbits = _PyLong_NumBits(plong);
1656
+ sign = _PyLong_Sign(plong);
1657
1658
Py_DECREF(plong);
1659
if (nbits != testcases[i].nbits)
0 commit comments