diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 15:23:10 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 15:23:10 (GMT) |
commit | 72f3b7a5ded370e835a23be2f091bbee4e538b4c (patch) | |
tree | 560b460f7811bf10e04d63c42c6dd6031a9f056b /Python/import.c | |
parent | 747c3d3f0242022c46213bcd90fb8c1a527be7b6 (diff) | |
download | cpython-72f3b7a5ded370e835a23be2f091bbee4e538b4c.zip cpython-72f3b7a5ded370e835a23be2f091bbee4e538b4c.tar.gz cpython-72f3b7a5ded370e835a23be2f091bbee4e538b4c.tar.bz2 |
Added missing casts.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index d921d74..87b9963 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2339,7 +2339,7 @@ imp_set_frozenmodules(PyObject *self, PyObject *args) goto typeerror; frozenmodules[i].name = PyString_AsString(name); if (PyObject_IsTrue(code)) { - frozenmodules[i].code = PyString_AsString(code); + frozenmodules[i].code = (unsigned char *)PyString_AsString(code); frozenmodules[i].size = PyString_Size(code); } else { frozenmodules[i].code = NULL; @@ -2407,7 +2407,7 @@ imp_get_frozenmodules(PyObject *self, PyObject *args) Py_INCREF(ob); PyTuple_SET_ITEM(item, 0, ob); if (p->code != NULL) { - ob = PyString_FromStringAndSize(p->code, + ob = PyString_FromStringAndSize((char *)p->code, p->size >= 0 ? p->size : -(p->size)); if (ob == NULL) goto error; |