diff options
Diffstat (limited to 'Python/mystrtoul.c')
-rw-r--r-- | Python/mystrtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index 0939438421..a869b4681a 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -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'; |