8000 gh-119182: Add PyUnicodeWriter C API by vstinner · Pull Request #119184 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-119182: Add PyUnicodeWriter C API #119184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 17, 2024
Prev Previous commit
Next Next commit
Update Objects/unicodeobject.c
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
vstinner and erlend-aasland authored Jun 10, 2024
commit e6195b767c21b3e21ee868d162f0718e810b7104
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -13149,7 +13149,7 @@ PyUnicodeWriter_Create(Py_ssize_t length)
const size_t size = sizeof(_PyUnicodeWriter);
PyUnicodeWriter *pub_writer = (PyUnicodeWriter *)PyMem_Malloc(size);
if (pub_writer == NULL) {
return PyErr_NoMemory();
return (PyUnicodeWriter *)PyErr_NoMemory();
}
_PyUnicodeWriter *writer = (_PyUnicodeWriter *)pub_writer;

Expand Down
0