Skip to content

Commit

Permalink
fix: warning from clang compiler on debian, closes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
m-jahn committed Dec 13, 2023
1 parent 1df27ab commit dd75c9b
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 dd75c9b

Please sign in to comment.