Commit fdc1a567 authored by Brett Cannon's avatar Brett Cannon

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

parent 65ea9bd8
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment