From fdc1a567ecf3e747a63534279448cce39150964e Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 5 Sep 2007 20:35:46 +0000 Subject: Cast away const qualifier to silence a compiler warning about it. --- Parser/parsetok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12