From 30fee26a2891ad1e6a52f13b5edb89e81cb399dd Mon Sep 17 00:00:00 2001 From: Martin Steinegger Date: Wed, 24 Apr 2019 01:29:27 -0400 Subject: [PATCH] Fix alignment issue https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library/issues/61 --- src/alignment/StripedSmithWaterman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alignment/StripedSmithWaterman.cpp b/src/alignment/StripedSmithWaterman.cpp index 453c9e9cf..d639fe46b 100644 --- a/src/alignment/StripedSmithWaterman.cpp +++ b/src/alignment/StripedSmithWaterman.cpp @@ -893,7 +893,7 @@ SmithWaterman::cigar * SmithWaterman::banded_sw(const int *db_sequence, const in l = 0; // record length of current cigar op = prev_op = 'M'; temp2 = 2; // h - while (LIKELY(i > 0)) { + while (LIKELY(i > 0) || LIKELY(j > 0)) { set_d(temp1, band_width, i, j, temp2); switch (direction_line[temp1]) { case 1: