SHA256
1
0
forked from pool/uwsgi
uwsgi/uwsgi-93d07ec38b31.patch
Dominique Leuenberger 24b0e5ce6b - Added a backport of uwsgi-93d07ec38b31.patch to fix a type
incompatibility problem to enable build with GCC 14.

If the request is OK, please forward it to Factory soon too so that we
can switch the default compiler.  Thanks!

OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=129
2024-08-16 12:10:59 +00:00

24 lines
689 B
Diff

From 93d07ec38b319c2fba7c71d3fd0d5acc2882d65a Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Tue, 14 May 2024 21:08:14 -0700
Subject: [PATCH] fix 32-bit compilation with GCC14
Wrong pointer type is used.
---
core/regexp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/regexp.c b/core/regexp.c
index 74bb77751..2b59f16fb 100644
--- a/core/regexp.c
+++ b/core/regexp.c
@@ -23,7 +23,7 @@ int uwsgi_regexp_build(char *re, uwsgi_pcre ** pattern) {
#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