Skip to content

Commit

Permalink
Rf_ stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Aug 23, 2024
1 parent 0f963e7 commit 44ba830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/which_nearest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ extern "C"
// EJP: trying to fix the clang-ASAN error,
// EJP: replace these to lines with
if (!q_pending.empty()) {
if (it->index < length(qe) && *q_pending.begin() < Rf_length(qe) ) {
if (it->index < Rf_length(qe) && *q_pending.begin() < Rf_length(qe) ) {
if ( q_right[ it->index ] > q_right[ *q_pending.begin() ] )
q_pending.clear();
}
Expand Down

0 comments on commit 44ba830

Please sign in to comment.