Skip to content

Commit

Permalink
Fix a few compilewarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 22, 2024
1 parent 269f1eb commit 755a8a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/concaveman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NumericMatrix concaveman_c(NumericMatrix p, IntegerVector h, double concavity, d

NumericMatrix res(chull.size(), 2);

for (auto i = 0; i < chull.size(); ++i) {
for (size_t i = 0; i < chull.size(); ++i) {
res(i, 0) = chull[i][0];
res(i, 1) = chull[i][1];
}
Expand Down
1 change: 0 additions & 1 deletion src/concaveman.h
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ template<class T, int MAX_CHILDREN> std::array<T, 2> findCandidate(
bool &ok) {

typedef std::array<T, 2> point_type;
typedef CircularElement<Node<T>> circ_elem_type;
typedef rtree<T, 2, MAX_CHILDREN, std::array<T, 2>> tree_type;
typedef const tree_type const_tree_type;
typedef std::reference_wrapper<const_tree_type> tree_ref_type;
Expand Down

0 comments on commit 755a8a3

Please sign in to comment.