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/dictobject.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/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 0eccdbb..f6fa1eb 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1880,16 +1880,16 @@ PyDict_Contains(PyObject *op, PyObject *key) /* Hack to implement "key in dict" */ static PySequenceMethods dict_as_sequence = { - 0, /* sq_length */ - 0, /* sq_concat */ - 0, /* sq_repeat */ - 0, /* sq_item */ - 0, /* sq_slice */ - 0, /* sq_ass_item */ - 0, /* sq_ass_slice */ - (objobjproc)PyDict_Contains, /* sq_contains */ - 0, /* sq_inplace_concat */ - 0, /* sq_inplace_repeat */ + 0, /* sq_length */ + 0, /* sq_concat */ + 0, /* sq_repeat */ + 0, /* sq_item */ + 0, /* sq_slice */ + 0, /* sq_ass_item */ + 0, /* sq_ass_slice */ + PyDict_Contains, /* sq_contains */ + 0, /* sq_inplace_concat */ + 0, /* sq_inplace_repeat */ }; static PyObject * @@ -1966,8 +1966,8 @@ PyTypeObject PyDict_Type = { Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, /* tp_flags */ dictionary_doc, /* tp_doc */ - (traverseproc)dict_traverse, /* tp_traverse */ - (inquiry)dict_tp_clear, /* tp_clear */ + dict_traverse, /* tp_traverse */ + dict_tp_clear, /* tp_clear */ dict_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc)dict_iter, /* tp_iter */ @@ -1980,7 +1980,7 @@ PyTypeObject PyDict_Type = { 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ - (initproc)dict_init, /* tp_init */ + dict_init, /* tp_init */ PyType_GenericAlloc, /* tp_alloc */ dict_new, /* tp_new */ PyObject_GC_Del, /* tp_free */ |