Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jun 10, 2020
1 parent dba7dee commit 90144a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ebwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2795,13 +2795,11 @@ void Ebwt::checkOrigs(const vector<BTRefString >& os, bool mirror) const
}
while(i < os.size()) {
size_t olen = os[i].length();
int lastorig = -1;
for(; j < olen; j++) {
size_t joff = j;
if(mirror) joff = olen - j - 1;
if((int)os[i][joff] == 4) {
// Skip over Ns
lastorig = -1;
if(!mirror) {
while(j < olen && (int)os[i][j] == 4) j++;
} else {
Expand All @@ -2812,7 +2810,6 @@ void Ebwt::checkOrigs(const vector<BTRefString >& os, bool mirror) const
}

assert_eq(os[i][joff], rest[restOff]);
lastorig = (int)os[i][joff];
restOff++;
}
if(j == os[i].length()) {
Expand Down
2 changes: 1 addition & 1 deletion hit.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ class HitSink {
size_t nthreads_;
std::vector<BTString> ptBufs_;
std::vector<size_t> ptCounts_;
int perThreadBufSize_;
size_t perThreadBufSize_;

size_t next_batch_to_flush_;
bool reorder_;
Expand Down
4 changes: 3 additions & 1 deletion hit_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#ifndef HIT_SET_H_
#define HIT_SET_H_

#include <vector>
#include <algorithm>
#include <limits.h>
#include <vector>

#include "assert_helpers.h"
#include "filebuf.h"
#include "edit.h"
Expand Down

0 comments on commit 90144a1

Please sign in to comment.