Skip to content

Commit 0590202

Browse files
committed
cast length(geos) to UInt32 in createCollection
* createCollection(geomtype::Int, geoms::Vector{GEOSGeom})
1 parent f882a4b commit 0590202

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/geos_functions.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ end
352352

353353

354354
function createCollection(geomtype::Int, geoms::Vector{GEOSGeom})
355-
result = GEOSGeom_createCollection(@compat(Int32(geomtype)), pointer(geoms), length(geoms))
355+
result = GEOSGeom_createCollection(@compat(Int32(geomtype)), pointer(geoms), @compat(UInt32(length(geoms))))
356356
if result == C_NULL
357357
error("LibGEOS: Error in GEOSGeom_createCollection")
358358
end
@@ -1093,4 +1093,3 @@ end
10931093
# Return 0 on exception, the closest points of the two geometries otherwise.
10941094
# The first point comes from g1 geometry and the second point comes from g2.
10951095
nearestPoints(g1::GEOSGeom, g2::GEOSGeom) = GEOSNearestPoints(g1, g2)
1096-

0 commit comments

Comments
 (0)