diff options
author | Georg Brandl <georg@python.org> | 2006-03-30 11:57:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-03-30 11:57:00 (GMT) |
commit | 347b30042b68e80b245a03b23cb616024ecb1f1e (patch) | |
tree | 56c43f8b23f0ec425aa3c122b5b7eca975770e62 /Objects/complexobject.c | |
parent | 3987df5adf6ce821a290bd6e741fbcd8e0589fd8 (diff) | |
download | cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.zip cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.tar.gz cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.tar.bz2 |
Remove unnecessary casts in type object initializers.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 5c84eff..1b2ea9b 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -962,10 +962,10 @@ static PyNumberMethods complex_as_number = { 0, /* nb_and */ 0, /* nb_xor */ 0, /* nb_or */ - (coercion)complex_coerce, /* nb_coerce */ - (unaryfunc)complex_int, /* nb_int */ - (unaryfunc)complex_long, /* nb_long */ - (unaryfunc)complex_float, /* nb_float */ + complex_coerce, /* nb_coerce */ + complex_int, /* nb_int */ + complex_long, /* nb_long */ + complex_float, /* nb_float */ 0, /* nb_oct */ 0, /* nb_hex */ 0, /* nb_inplace_add */ @@ -991,7 +991,7 @@ PyTypeObject PyComplex_Type = { "complex", sizeof(PyComplexObject), 0, - (destructor)complex_dealloc, /* tp_dealloc */ + complex_dealloc, /* tp_dealloc */ (printfunc)complex_print, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ |