Skip to content

Commit

Permalink
Prevent get_coordinate_pointers from mutating input coordinates (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjones94549 committed Feb 4, 2022
1 parent 20c4377 commit 0bc99bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtree/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def get_coordinate_pointers(self, coordinates):

# it's a point make it into a bbox. [x, y] => [x, y, x, y]
if len(coordinates) == dimension:
coordinates += coordinates
coordinates = *coordinates, *coordinates

if len(coordinates) != dimension * 2:
raise core.RTreeError(
Expand Down

0 comments on commit 0bc99bb

Please sign in to comment.