[Python-3000-checkins] r57995 - python/branches/py3k/Parser/parsetok.c

brett.cannon python-3000-checkins at python.org
Wed Sep 5 22:35:46 CEST 2007


Author: brett.cannon
Date: Wed Sep  5 22:35:46 2007
New Revision: 57995

Modified:
   python/branches/py3k/Parser/parsetok.c
Log:
Cast away const qualifier to silence a compiler warning about it.


Modified: python/branches/py3k/Parser/parsetok.c
==============================================================================
--- python/branches/py3k/Parser/parsetok.c	(original)
+++ python/branches/py3k/Parser/parsetok.c	Wed Sep  5 22:35:46 2007
@@ -72,7 +72,7 @@
 
 	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;
 	}


More information about the Python-3000-checkins mailing list