summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-28 22:00:02 (GMT)
committerGuido van Rossum <guido@python.org>2000-06-28 22:00:02 (GMT)
commit6da3434e037a281c771ad0fe37896920bfedd140 (patch)
tree62e6693804a2140d177126ba0754485ad44862cf /Parser/parsetok.c
parent0ed1148b75de3ab7b969cc22c35bdb6273992954 (diff)
downloadcpython-6da3434e037a281c771ad0fe37896920bfedd140.zip
cpython-6da3434e037a281c771ad0fe37896920bfedd140.tar.gz
cpython-6da3434e037a281c771ad0fe37896920bfedd140.tar.bz2
Trent Mick: familiar simple Win64 patches
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 7e87859..6e8523b 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -136,7 +136,7 @@ parsetok(tok, g, start, err_ret)
for (;;) {
char *a, *b;
int type;
- int len;
+ size_t len;
char *str;
type = PyTokenizer_Get(tok, &a, &b);
@@ -184,7 +184,7 @@ parsetok(tok, g, start, err_ret)
err_ret->lineno = tok->lineno;
err_ret->offset = tok->cur - tok->buf;
if (tok->buf != NULL) {
- int len = tok->inp - tok->buf;
+ size_t len = tok->inp - tok->buf;
err_ret->text = PyMem_NEW(char, len + 1);
if (err_ret->text != NULL) {
if (len > 0)