mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Keep gcc -Wall happy.
This commit is contained in:
parent
ed0af8fe70
commit
80bb9655f0
6 changed files with 38 additions and 28 deletions
|
@ -112,7 +112,7 @@ int base;
|
|||
}
|
||||
|
||||
/* do the conversion */
|
||||
while (c = Py_CHARMASK(*str))
|
||||
while ((c = Py_CHARMASK(*str)) != '\0')
|
||||
{
|
||||
if (isdigit(c) && c - '0' < base)
|
||||
c -= '0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue