mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Trent Mick: familiar simple Win64 patches
This commit is contained in:
parent
0ed1148b75
commit
6da3434e03
4 changed files with 14 additions and 11 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue