Skip to content

Commit

Permalink
Merge pull request #185 from voutcn/fix/1pass
Browse files Browse the repository at this point in the history
fix make test error
  • Loading branch information
voutcn authored Nov 2, 2018
2 parents ef1bae6 + 4bbc46b commit b70d24b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.1.3 / 2018-11-01 PST

* Fixed a bug in mercy edge stage in 1-pass mode

### 1.1.3 / 2018-03-02 PST

* Fix a bug in atomic bit vector that may cause a race condition
Expand Down
5 changes: 4 additions & 1 deletion cx1_read2sdbg_s2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ void s2_read_mercy_prepare(read2sdbg_global_t &globals) {
}

uint64_t this_end = std::min(start_idx[tid] + avg, (uint64_t)mercy_cand.size());
uint64_t read_id = globals.package.get_id(mercy_cand[this_end] >> 2);
uint64_t read_id = 0;
if (this_end < mercy_cand.size()) {
read_id = globals.package.get_id(mercy_cand[this_end] >> 2);
}

while (this_end < mercy_cand.size() && globals.package.get_id(mercy_cand[this_end] >> 2) == read_id) {
++this_end;
Expand Down

0 comments on commit b70d24b

Please sign in to comment.