mirror of
https://github.com/python/cpython.git
synced 2025-11-04 03:44:55 +00:00
Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
whitespace.
This commit is contained in:
parent
55aafab04f
commit
b1410fb433
1 changed files with 3 additions and 1 deletions
|
|
@ -188,12 +188,14 @@ PyInt_AsLong(register PyObject *op)
|
||||||
Py_ssize_t
|
Py_ssize_t
|
||||||
PyInt_AsSsize_t(register PyObject *op)
|
PyInt_AsSsize_t(register PyObject *op)
|
||||||
{
|
{
|
||||||
|
#if SIZEOF_SIZE_T != SIZEOF_LONG
|
||||||
PyNumberMethods *nb;
|
PyNumberMethods *nb;
|
||||||
PyIntObject *io;
|
PyIntObject *io;
|
||||||
Py_ssize_t val;
|
Py_ssize_t val;
|
||||||
|
#endif
|
||||||
if (op && !PyInt_CheckExact(op) && PyLong_Check(op))
|
if (op && !PyInt_CheckExact(op) && PyLong_Check(op))
|
||||||
return _PyLong_AsSsize_t(op);
|
return _PyLong_AsSsize_t(op);
|
||||||
#if SIZEOF_SIZE_T==SIZEOF_LONG
|
#if SIZEOF_SIZE_T == SIZEOF_LONG
|
||||||
return PyInt_AsLong(op);
|
return PyInt_AsLong(op);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue