Skip to content

Commit

Permalink
Throw.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 15, 2020
1 parent 70e2ecb commit 04243b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/quantile.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,8 @@ class HostSketchContainer {

static uint32_t SearchGroupIndFromRow(std::vector<bst_uint> const &group_ptr,
size_t const base_rowid) {
CHECK_LT(base_rowid, group_ptr.back())
<< "Row: " << base_rowid << " is not found in any group.";
bst_group_t group_ind =
std::upper_bound(group_ptr.cbegin(), group_ptr.cend() - 1, base_rowid) -
group_ptr.cbegin() - 1;
Expand Down

0 comments on commit 04243b7

Please sign in to comment.