mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-89653: Use int type for Unicode kind (#92704)
Use the same type that PyUnicode_FromKindAndData() kind parameter type (public C API): int.
This commit is contained in:
parent
22a1db378c
commit
f62ad4f2c4
13 changed files with 49 additions and 52 deletions
|
@ -2396,7 +2396,7 @@ _PyBytes_FromHex(PyObject *string, int use_bytearray)
|
|||
|
||||
if (!PyUnicode_IS_ASCII(string)) {
|
||||
const void *data = PyUnicode_DATA(string);
|
||||
unsigned int kind = PyUnicode_KIND(string);
|
||||
int kind = PyUnicode_KIND(string);
|
||||
Py_ssize_t i;
|
||||
|
||||
/* search for the first non-ASCII character */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue