mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
use Py_CHARMASK
This commit is contained in:
parent
760dd1031a
commit
7f7f274839
5 changed files with 27 additions and 22 deletions
|
@ -608,12 +608,12 @@ parsestr(s)
|
|||
*p++ = c;
|
||||
break;
|
||||
case 'x':
|
||||
if (isxdigit(*s)) {
|
||||
if (isxdigit(Py_CHARMASK(*s))) {
|
||||
sscanf(s, "%x", &c);
|
||||
*p++ = c;
|
||||
do {
|
||||
s++;
|
||||
} while (isxdigit(*s));
|
||||
} while (isxdigit(Py_CHARMASK(*s)));
|
||||
break;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue