From: Thomas Wouters Date: Wed, 15 Feb 2006 23:08:56 +0000 (+0000) Subject: Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize X-Git-Tag: v2.5a0~671 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1410fb4337fcf849c6d1ec76a7fb1e2c12c2508;p=thirdparty%2FPython%2Fcpython.git Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize whitespace. --- diff --git a/Objects/intobject.c b/Objects/intobject.c index d1b9599622e9..232b2d234a5e 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -188,12 +188,14 @@ PyInt_AsLong(register PyObject *op) Py_ssize_t PyInt_AsSsize_t(register PyObject *op) { +#if SIZEOF_SIZE_T != SIZEOF_LONG PyNumberMethods *nb; PyIntObject *io; Py_ssize_t val; +#endif if (op && !PyInt_CheckExact(op) && PyLong_Check(op)) return _PyLong_AsSsize_t(op); -#if SIZEOF_SIZE_T==SIZEOF_LONG +#if SIZEOF_SIZE_T == SIZEOF_LONG return PyInt_AsLong(op); #else