aboutsummaryrefslogtreecommitdiff
path: root/gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch')
-rw-r--r--gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch b/gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch
new file mode 100644
index 000000000000..90359ce4bc43
--- /dev/null
+++ b/gis/python3-shapely/9795506bba84e96418466ae84573c0cf8654bbeb.patch
@@ -0,0 +1,22 @@
+From 9795506bba84e96418466ae84573c0cf8654bbeb Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sun, 3 Dec 2023 11:36:36 -0500
+Subject: [PATCH] Fix incompatible pointer type passed to GEOSPolygonize_r
+
+---
+ src/ufuncs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ufuncs.c b/src/ufuncs.c
+index ed83e9619..9d08fa20c 100644
+--- a/src/ufuncs.c
++++ b/src/ufuncs.c
+@@ -2160,7 +2160,7 @@ static void polygonize_func(char** args, const npy_intp* dimensions, const npy_i
+
+ GEOS_INIT;
+
+- GEOSGeometry** geoms = malloc(sizeof(void*) * dimensions[1]);
++ const GEOSGeometry** geoms = malloc(sizeof(void*) * dimensions[1]);
+ if (geoms == NULL) {
+ errstate = PGERR_NO_MALLOC;
+ goto finish;