We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a108539 commit 8bc595eCopy full SHA for 8bc595e
src/common/quantile.h
@@ -207,7 +207,7 @@ struct WQSummary {
207
// find first i such that d < (rmax[i+1] + rmin[i+1]) / 2
208
while (i < src.size - 1
209
&& dx2 >= src.data[i + 1].rmax + src.data[i + 1].rmin) ++i;
210
- CHECK(i != src.size - 1);
+ if (i == src.size - 1) break;
211
if (dx2 < src.data[i].RMinNext() + src.data[i + 1].RMaxPrev()) {
212
if (i != lastidx) {
213
data[size++] = src.data[i]; lastidx = i;
0 commit comments