mirror of https://github.com/python/cpython
Cast away const qualifier to silence a compiler warning about it.
This commit is contained in:
parent
65ea9bd87e
commit
fdc1a567ec
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue