summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-05 14:14:05 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-05 14:14:05 (GMT)
commitcf0a2cfdb269ba8060f86fe5fe7a2b2085edbbc1 (patch)
tree6b1660885fd7be230e29f756541d11afce0a3b09
parentace9d955b0329558005a88f5711de12e96b356c4 (diff)
downloadcpython-cf0a2cfdb269ba8060f86fe5fe7a2b2085edbbc1.zip
cpython-cf0a2cfdb269ba8060f86fe5fe7a2b2085edbbc1.tar.gz
cpython-cf0a2cfdb269ba8060f86fe5fe7a2b2085edbbc1.tar.bz2
Added a cast to shut up a compiler warning.
-rw-r--r--Parser/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 18884fe..3761a48 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -422,7 +422,7 @@ decoding_fgets(char *s, int size, struct tok_state *tok)
#ifndef PGEN
if (warn && line && !tok->issued_encoding_warning && !tok->encoding) {
unsigned char *c;
- for (c = line; *c; c++)
+ for (c = (unsigned char *)line; *c; c++)
if (*c > 127) {
badchar = *c;
break;