summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-07-08 00:32:04 +0000
committerTim Peters <tim.peters@gmail.com>2000-07-08 00:32:04 +0000
commit9ace6bc7efcca54f85cd638adef7b76468253505 (patch)
tree6178aa6af8230b6fa2b0413b15c7a31a0ae4b7b7 /Objects
parent74b2677593f8d8fa362e25b70dcaaf6d93108873 (diff)
downloadcpython-git-9ace6bc7efcca54f85cd638adef7b76468253505.tar.gz
Got RID of redundant coercions in longobject.c (as spotted by Greg
Stein -- thanks!). Incidentally removed all the Py_PROTO macros from object.h, as they prevented my editor from magically finding the definitions of the "coercion", "cmpfunc" and "reprfunc" typedefs that were being redundantly applied in longobject.c.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index f4652219fd..df69a6da67 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1677,8 +1677,7 @@ static PyNumberMethods long_as_number = {
(binaryfunc) long_and, /*nb_and*/
(binaryfunc) long_xor, /*nb_xor*/
(binaryfunc) long_or, /*nb_or*/
- (int (*) (PyObject **, PyObject **))
- (coercion)long_coerce, /*nb_coerce*/
+ (coercion) long_coerce, /*nb_coerce*/
(unaryfunc) long_int, /*nb_int*/
(unaryfunc) long_long, /*nb_long*/
(unaryfunc) long_float, /*nb_float*/
@@ -1696,14 +1695,12 @@ PyTypeObject PyLong_Type = {
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
- (int (*) (PyObject *, PyObject *))
- (cmpfunc)long_compare, /*tp_compare*/
+ (cmpfunc)long_compare, /*tp_compare*/
(reprfunc)long_repr, /*tp_repr*/
&long_as_number, /*tp_as_number*/
0, /*tp_as_sequence*/
0, /*tp_as_mapping*/
- (long (*) (PyObject *))
- (hashfunc)long_hash, /*tp_hash*/
+ (hashfunc)long_hash, /*tp_hash*/
0, /*tp_call*/
(reprfunc)long_str, /*tp_str*/
};