summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-09-05 20:35:46 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-09-05 20:35:46 (GMT)
commitfdc1a567ecf3e747a63534279448cce39150964e (patch)
tree79d0ea15437dcd45ee472468f5295fe1dc80ff7c /Parser/parsetok.c
parent65ea9bd87e294ec9eb80f2686bbb9d17276a14e4 (diff)
downloadcpython-fdc1a567ecf3e747a63534279448cce39150964e.zip
cpython-fdc1a567ecf3e747a63534279448cce39150964e.tar.gz
cpython-fdc1a567ecf3e747a63534279448cce39150964e.tar.bz2
Cast away const qualifier to silence a compiler warning about it.
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index b9664ea..708c26d 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -72,7 +72,7 @@ PyParser_ParseFileFlags(FILE *fp, const char *filename, const char* enc,
initerr(err_ret, filename);
- if ((tok = PyTokenizer_FromFile(fp, enc, ps1, ps2)) == NULL) {
+ if ((tok = PyTokenizer_FromFile(fp, (char *)enc, ps1, ps2)) == NULL) {
err_ret->error = E_NOMEM;
return NULL;
}