Skip to content

Commit

Permalink
Fix issues discovered during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jun 16, 2020
1 parent 5ca3023 commit 1c923ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion diff_sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,9 @@ void DifferenceCoverSample<TStr>::doBuiltSanityCheck() const {
assert(built());
VMSG_NL(" Doing sanity check");
TIndexOffU added = 0;
EList<TIndexOffU> sorted(_isaPrime.size());
EList<TIndexOffU> sorted;
sorted.resizeExact(_isaPrime.size());
sorted.fill(OFF_MASK);
for(size_t di = 0; di < this->d(); di++) {
uint32_t d = _ds[di];
size_t i = 0;
Expand Down
2 changes: 1 addition & 1 deletion range_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ class CostAwareRangeSourceDriver : public RangeSourceDriver<TRangeSource> {
}
i++;
}
if(delayedRange_ == NULL) {
if(delayedRange_ == NULL && sz > 0) {
assert_geq(this->minCost, this->minCostAdjustment_);
assert_geq(vec[0]->minCost, this->minCost);
this->minCost = vec[0]->minCost;
Expand Down

0 comments on commit 1c923ff

Please sign in to comment.