Skip to content

Commit

Permalink
Merge pull request #46 from m-jahn/dev
Browse files Browse the repository at this point in the history
fix: warning from clang compiler on debian, closes #45
  • Loading branch information
m-jahn authored Dec 13, 2023
2 parents 1df27ab + dd75c9b commit 25774d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voronoiDiagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ SEXP cropped_voronoi(NumericMatrix sites)
IntegerVector boundary_pos = get_boundary_pos(xs, ys);
// then reorder only if boundary positions are not at the ends of the vector.
if (boundary_pos.length() == 2) {
if ((boundary_pos[0] != 0) | (boundary_pos[1] != xs.length()-1)) {
if ((boundary_pos[0] != 0) || (boundary_pos[1] != xs.length()-1)) {
IntegerVector seq1, seq2;
seq1 = seq(boundary_pos[1], xs.length()-1);
seq2 = seq(0, boundary_pos[1]-1);
Expand Down

0 comments on commit 25774d9

Please sign in to comment.