summaryrefslogtreecommitdiff
path: root/src/sample_selection.cc
diff options
context:
space:
mode:
authorAndré Nusser <anusser@mpi-inf.mpg.de>2021-05-22 09:37:02 +0200
committerAndré Nusser <anusser@mpi-inf.mpg.de>2021-05-22 09:37:02 +0200
commit0fcb75e864ff8ed42622249dfdd7af9abfda033d (patch)
tree06b2353ea979e6fe9fefeb626dbcb507bc485f4b /src/sample_selection.cc
parent7f9f86a75c2ebd7875a57ce87e511e15b75c3b1c (diff)
This should fix wrong sample selection with two samples.
Diffstat (limited to 'src/sample_selection.cc')
-rw-r--r--src/sample_selection.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sample_selection.cc b/src/sample_selection.cc
index 7267faf..1195703 100644
--- a/src/sample_selection.cc
+++ b/src/sample_selection.cc
@@ -103,9 +103,6 @@ const Sample* SampleSelection::get(level_t level, std::size_t pos)
{
DEBUG(rand, "%d %d", (int)up_index, (int)down_index);
- // at least avoid infinite loops in case of a bug...
- if (up_index == samples.size()-1 && down_index == 0) { break; }
-
std::size_t current_index;
if (up_value_lb < down_value_lb)
{