gentoo/dev-libs/tre/files/tre-c99.patch
Kostadin Shishmanov ad45f6c5cb
dev-libs/tre: fix building with gcc 14, remove nonexistent blockers
Patch is a part of https://github.com/laurikari/tre/pull/49

Remove blockers for app-text/agrep and app-misc/glimpse that are no
longer in the tree.

Closes: https://bugs.gentoo.org/932740
Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
Closes: https://github.com/gentoo/gentoo/pull/36980
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-16 03:25:10 +01:00

24 lines
771 B
Diff

https://github.com/laurikari/tre/pull/49/commits/9c049c8c50a50a4f101aa45dd34bd138af7ed3cf
https://bugs.gentoo.org/932740
--- a/python/tre-python.c
+++ b/python/tre-python.c
@@ -365,7 +365,7 @@ PyTrePattern_search(TrePatternObject *self, PyObject *args)
if (PyUnicode_Check(pstring))
{
- Py_ssize_t len = PyUnicode_GetSize(pstring);
+ Py_ssize_t len = PyUnicode_GET_LENGTH(pstring);
wchar_t *buf = calloc(sizeof(wchar_t), len);
if(!buf)
{
@@ -502,7 +502,7 @@ PyTre_ncompile(PyObject *self, PyObject *args)
if (upattern != NULL)
{
- Py_ssize_t len = PyUnicode_GetSize(upattern);
+ Py_ssize_t len = PyUnicode_GET_LENGTH(upattern);
wchar_t *buf = calloc(sizeof(wchar_t), len);
if(!buf)
{