mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Don't truncate if size_t is bigger than uint
This commit is contained in:
parent
418b97eac1
commit
71e05f1e0c
1 changed files with 1 additions and 1 deletions
|
@ -1232,7 +1232,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
|
|||
do {
|
||||
*tp++ = c = tok_nextc(tok);
|
||||
} while (c != EOF && c != '\n' &&
|
||||
(unsigned int)(tp - cbuf + 1) < sizeof(cbuf));
|
||||
(size_t)(tp - cbuf + 1) < sizeof(cbuf));
|
||||
*tp = '\0';
|
||||
for (cp = tabforms;
|
||||
cp < tabforms + sizeof(tabforms)/sizeof(tabforms[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue