Trent Mick: familiar simple Win64 patches

This commit is contained in:
Guido van Rossum 2000-06-28 22:00:02 +00:00
parent 0ed1148b75
commit 6da3434e03
4 changed files with 14 additions and 11 deletions

View file

@ -223,9 +223,9 @@ tok_nextc(tok)
tok->done = E_EOF;
}
else if (tok->start != NULL) {
int start = tok->start - tok->buf;
int oldlen = tok->cur - tok->buf;
int newlen = oldlen + strlen(new);
size_t start = tok->start - tok->buf;
size_t oldlen = tok->cur - tok->buf;
size_t newlen = oldlen + strlen(new);
char *buf = tok->buf;
PyMem_RESIZE(buf, char, newlen+1);
tok->lineno++;