Skip to content

Commit

Permalink
fix status code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jun 15, 2023
1 parent 10beb36 commit b0d92b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/wflign/src/wflign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ void WFlign::wflign_affine_wavefront(
pattern_length,text_length);

// Extract the trace
if (wflambda_aligner->getAlignmentStatus() == WF_STATUS_OK) {
if (wflambda_aligner->getAlignmentStatus() == WF_STATUS_ALG_COMPLETED) {
extend_data.num_alignments += wflambda_trace_match(
alignments,*wflambda_aligner,trace,pattern_length,text_length);
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/wflign/src/wflign_patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void do_wfa_patch_alignment(
* std::max((int)256, (int)std::min(target_length, query_length))));
wf_aligner.setMaxAlignmentSteps(max_score);
const int status = wf_aligner.alignEnd2End(target + i,target_length,query + j,query_length);
aln.ok = (status == WF_STATUS_OK);
aln.ok = (status == WF_STATUS_ALG_COMPLETED);
if (aln.ok) {
// No more necessary: correct X/M errors in the cigar
// hack_cigar(wf_aligner->cigar, query, target, query_length, target_length, j, i);
Expand Down

0 comments on commit b0d92b2

Please sign in to comment.