mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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
|
@ -5284,7 +5284,7 @@ _sanitize_isoformat_str(PyObject *dtstr)
|
|||
//
|
||||
// The result of this, if not NULL, returns a new reference
|
||||
const void* const unicode_data = PyUnicode_DATA(dtstr);
|
||||
const unsigned int kind = PyUnicode_KIND(dtstr);
|
||||
const int kind = PyUnicode_KIND(dtstr);
|
||||
|
||||
// Depending on the format of the string, the separator can only ever be
|
||||
// in positions 7, 8 or 10. We'll check each of these for a surrogate and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue