aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 +0000
commita94568a7535de60f1144e4eea0d027b87017a4b4 (patch)
tree5a8f696ca440a296b18521be17920b48f2021e4c /Python
parentPatch #612627: Add encoding attribute to file objects, and determine (diff)
downloadcpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.gz
cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.bz2
cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.zip
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
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 ba8b945ec68..805c519cf93 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;