mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -2579,7 +2579,7 @@ raw_unicode_escape(PyObject *obj)
|
|||
char *p;
|
||||
Py_ssize_t i, size;
|
||||
const void *data;
|
||||
unsigned int kind;
|
||||
int kind;
|
||||
_PyBytesWriter writer;
|
||||
|
||||
if (PyUnicode_READY(obj))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue