projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55aafab
)
Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
author
Thomas Wouters
<thomas@python.org>
Wed, 15 Feb 2006 23:08:56 +0000
(23:08 +0000)
committer
Thomas Wouters
<thomas@python.org>
Wed, 15 Feb 2006 23:08:56 +0000
(23:08 +0000)
whitespace.
Objects/intobject.c
patch
|
blob
|
history
diff --git
a/Objects/intobject.c
b/Objects/intobject.c
index d1b9599622e93bd2f170a22659161ab99e4905c0..232b2d234a5ee10da2e8a485ef20ebca00f774e5 100644
(file)
--- 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