mirror of
https://github.com/python/cpython
synced 2026-09-29 09:40:29 +03:00
Cast away const qualifier to silence a compiler warning about it.
This commit is contained in:
parent
65ea9bd87e
commit
fdc1a567ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue