summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index ba8b945..805c519 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -420,7 +420,7 @@ optimize_code(PyObject *code, PyObject* consts)
goto exitUnchanged;
}
}
- code = PyString_FromStringAndSize(codestr, codelen);
+ code = PyString_FromStringAndSize((char *)codestr, codelen);
PyMem_Free(codestr);
return code;