summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-04 05:43:02 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-04 05:43:02 (GMT)
commit59f809d3bc333ec0a4d21ad8d375782e0b25c17e (patch)
treec3341c2de516ab049dfcbc36a188901c3d967bf9 /Objects
parent527e64fd68046cb6e2ff35afaf077160346d37ff (diff)
downloadcpython-59f809d3bc333ec0a4d21ad8d375782e0b25c17e.zip
cpython-59f809d3bc333ec0a4d21ad8d375782e0b25c17e.tar.gz
cpython-59f809d3bc333ec0a4d21ad8d375782e0b25c17e.tar.bz2
type_new(): cast PyObject_MALLOC's result to char*, for clarity.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index e8f436c..fae159c 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -909,7 +909,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
PyObject *doc = PyDict_GetItemString(dict, "__doc__");
if (doc != NULL && PyString_Check(doc)) {
const size_t n = (size_t)PyString_GET_SIZE(doc);
- type->tp_doc = PyObject_MALLOC(n+1);
+ type->tp_doc = (char *)PyObject_MALLOC(n+1);
if (type->tp_doc == NULL) {
Py_DECREF(type);
return NULL;