diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-13 10:41:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 10:41:05 (GMT) |
commit | f62ad4f2c4214fdc05cc45c27a5c068553c7942c (patch) | |
tree | 5c8cf46c3ae7c874ac601f3e18357a1862474fba /Include | |
parent | 22a1db378c5c381272362c5b2f68ac78a368e136 (diff) | |
download | cpython-f62ad4f2c4214fdc05cc45c27a5c068553c7942c.zip cpython-f62ad4f2c4214fdc05cc45c27a5c068553c7942c.tar.gz cpython-f62ad4f2c4214fdc05cc45c27a5c068553c7942c.tar.bz2 |
gh-89653: Use int type for Unicode kind (#92704)
Use the same type that PyUnicode_FromKindAndData() kind parameter
type (public C API): int.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/unicodeobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 030614e..16db2cb 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -507,7 +507,7 @@ PyAPI_FUNC(Py_UCS4) _PyUnicode_FindMaxChar ( typedef struct { PyObject *buffer; void *data; - enum PyUnicode_Kind kind; + int kind; Py_UCS4 maxchar; Py_ssize_t size; Py_ssize_t pos; @@ -566,7 +566,7 @@ _PyUnicodeWriter_PrepareInternal(_PyUnicodeWriter *writer, macro instead. */ PyAPI_FUNC(int) _PyUnicodeWriter_PrepareKindInternal(_PyUnicodeWriter *writer, - enum PyUnicode_Kind kind); + int kind); /* Append a Unicode character. Return 0 on success, raise an exception and return -1 on error. */ |