summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sample_selection.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sample_selection.cc b/src/sample_selection.cc
index 1195703..31313bb 100644
--- a/src/sample_selection.cc
+++ b/src/sample_selection.cc
@@ -103,6 +103,8 @@ const Sample* SampleSelection::get(level_t level, std::size_t pos)
{
DEBUG(rand, "%d %d", (int)up_index, (int)down_index);
+ assert(down_index <= up_index);
+
std::size_t current_index;
if (up_value_lb < down_value_lb)
{