Skip to content

Commit

Permalink
c++11 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed Sep 4, 2020
1 parent c8e54be commit da8c26f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ void Graph::PrintDot(const std::string& path) const {
}
std::ofstream os(path);

std::vector<bool> consensus_rank(nodes_.size(), -1);
std::vector<std::int32_t> consensus_rank(nodes_.size(), -1);
std::int32_t rank = 0;
for (const auto& it : consensus_) {
consensus_rank[it->id] = rank++;
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ int main(int argc, char** argv) {
auto alignment_rev = alignment_engine->Align(it->data, graph, &score_rev);
if (score >= score_rev) {
it->ReverseAndComplement();
is_reversed.emplace_back(false);
is_reversed.push_back(false);
} else {
alignment = alignment_rev;
is_reversed.emplace_back(true);
is_reversed.push_back(true);
}
}

Expand Down

0 comments on commit da8c26f

Please sign in to comment.