Mercurial > cpython-lru_cache-weakref
diff Objects/complexobject.c @ 37304:79a0f080f898 legacy-trunk
Remove unnecessary casts in type object initializers.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 30 Mar 2006 11:57:00 +0000 |
| parents | dba6494735d0 |
| children | 20cb13bdf1f0 |
line wrap: on
line diff
--- a/Objects/complexobject.c Thu Mar 30 11:51:58 2006 +0000 +++ b/Objects/complexobject.c Thu Mar 30 11:57:00 2006 +0000 @@ -962,10 +962,10 @@ 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 @@ "complex", sizeof(PyComplexObject), 0, - (destructor)complex_dealloc, /* tp_dealloc */ + complex_dealloc, /* tp_dealloc */ (printfunc)complex_print, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */
