uwsgi: fix compilation with GCC14

Wrong pointer type is used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-05-14 21:06:36 -07:00
parent 0adf0e8069
commit 459a8a79fe
2 changed files with 12 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=uwsgi
PKG_VERSION:=2.0.25.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=uWSGI
PYPI_SOURCE_NAME:=uwsgi

View File

@@ -0,0 +1,11 @@
--- a/core/regexp.c
+++ b/core/regexp.c
@@ -23,7 +23,7 @@ int uwsgi_regexp_build(char *re, uwsgi_p
#ifdef UWSGI_PCRE2
int errnbr;
- long unsigned int erroff;
+ size_t erroff;
*pattern = pcre2_compile((const unsigned char *) re, PCRE2_ZERO_TERMINATED, 0, &errnbr, &erroff, NULL);
#else