MINGW-packages/mingw-w64-python-shapely/0001-shapely-2.0.4-const-cast.patch
2024-05-22 22:38:48 +03:00

13 lines
510 B
Diff

diff -Naur shapely-2.0.4.orig/src/ufuncs.c shapely-2.0.4/src/ufuncs.c
--- shapely-2.0.4.orig/src/ufuncs.c 2024-05-22 22:05:04.162021200 +0300
+++ shapely-2.0.4/src/ufuncs.c 2024-05-22 22:05:30.642070100 +0300
@@ -2202,7 +2202,7 @@
n_geoms++;
}
- GEOSGeometry* ret_ptr = GEOSPolygonize_r(ctx, geoms, n_geoms);
+ GEOSGeometry* ret_ptr = GEOSPolygonize_r(ctx, (const GEOSGeometry *const*)geoms, n_geoms);
if (ret_ptr == NULL) {
errstate = PGERR_GEOS_EXCEPTION;
goto finish;