From dd75c9b8d2f54b0b61794634bda77c6ef418fa97 Mon Sep 17 00:00:00 2001 From: jahn Date: Wed, 13 Dec 2023 16:05:30 +0100 Subject: [PATCH] fix: warning from clang compiler on debian, closes #45 --- src/voronoiDiagram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voronoiDiagram.cpp b/src/voronoiDiagram.cpp index 98abec1..c7c2de8 100644 --- a/src/voronoiDiagram.cpp +++ b/src/voronoiDiagram.cpp @@ -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);