[Python-checkins] r42389 - python/trunk/Objects/intobject.c

thomas.wouters python-checkins at python.org
Thu Feb 16 00:08:58 CET 2006


Author: thomas.wouters
Date: Thu Feb 16 00:08:56 2006
New Revision: 42389

Modified:
   python/trunk/Objects/intobject.c
Log:

Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
whitespace.



Modified: python/trunk/Objects/intobject.c
==============================================================================
--- python/trunk/Objects/intobject.c	(original)
+++ python/trunk/Objects/intobject.c	Thu Feb 16 00:08:56 2006
@@ -188,12 +188,14 @@
 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
 


More information about the Python-checkins mailing list