Skip to content

Commit 4eb5e51

Browse files
committed
Fixed wrong type check for arrays
1 parent 0bfda8c commit 4eb5e51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geospatial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ PHP_FUNCTION(rdp_simplify)
913913
return;
914914
}
915915

916-
if (!Z_TYPE_P(points_array) == IS_ARRAY) {
916+
if (Z_TYPE_P(points_array) != IS_ARRAY) {
917917
return;
918918
}
919919

@@ -1027,7 +1027,7 @@ PHP_FUNCTION(interpolate_polygon)
10271027
return;
10281028
}
10291029

1030-
if (!Z_TYPE_P(polygon) == IS_ARRAY) {
1030+
if (Z_TYPE_P(polygon) != IS_ARRAY) {
10311031
return;
10321032
}
10331033

0 commit comments

Comments
 (0)