mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Fix overflow that was leaving some lines too far away
This commit is contained in:
@@ -305,7 +305,7 @@ void douglas_peucker(struct draw *geom, int n, double e) {
|
|||||||
int first = recursion_stack.top();
|
int first = recursion_stack.top();
|
||||||
recursion_stack.pop();
|
recursion_stack.pop();
|
||||||
|
|
||||||
int max_distance = -1;
|
double max_distance = -1;
|
||||||
int farthest_element_index = second;
|
int farthest_element_index = second;
|
||||||
|
|
||||||
// find index idx of element with max_distance
|
// find index idx of element with max_distance
|
||||||
|
|||||||
Reference in New Issue
Block a user