Skip to content

Commit

Permalink
Fix mid calculation for #173. (#176)
Browse files Browse the repository at this point in the history
* Fix mid calculation for #173.

* Update us-states expected output.
  • Loading branch information
mlptownsend authored Oct 5, 2023
1 parent dc080b5 commit 6eb1731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/simplify.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

export default function simplify(coords, first, last, sqTolerance) {
let maxSqDist = sqTolerance;
const mid = first + (last - first) >> 1;
const mid = first + ((last - first) >> 1);
let minPosToMid = last - first;
let index;

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/us-states-tiles.json

Large diffs are not rendered by default.

0 comments on commit 6eb1731

Please sign in to comment.