Cast away const qualifier to silence a compiler warning about it.

This commit is contained in:
Brett Cannon 2007-09-05 20:35:46 +00:00
parent 65ea9bd87e
commit fdc1a567ec
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}