From 1458ef84d250c2a3ebfdc1c426241b976fc3d781 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sat, 17 Aug 2024 13:51:14 +0900 Subject: [PATCH] update edlib.cpp --- ext/edlib/edlib.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/edlib/edlib.cpp b/ext/edlib/edlib.cpp index e19f119..3cae48c 100644 --- a/ext/edlib/edlib.cpp +++ b/ext/edlib/edlib.cpp @@ -889,10 +889,10 @@ static int myersCalcEditDistanceNW(const Word* const Peq, const int W, const int (*alignData)->Ps[maxNumBlocks * c + b] = bl->P; (*alignData)->Ms[maxNumBlocks * c + b] = bl->M; (*alignData)->scores[maxNumBlocks * c + b] = bl->score; - (*alignData)->firstBlocks[c] = firstBlock; - (*alignData)->lastBlocks[c] = lastBlock; bl++; } + (*alignData)->firstBlocks[c] = firstBlock; + (*alignData)->lastBlocks[c] = lastBlock; } //----------------------------------------------------------// //---- If this is stop column, save it and finish ----// @@ -901,9 +901,9 @@ static int myersCalcEditDistanceNW(const Word* const Peq, const int W, const int (*alignData)->Ps[b] = (blocks + b)->P; (*alignData)->Ms[b] = (blocks + b)->M; (*alignData)->scores[b] = (blocks + b)->score; - (*alignData)->firstBlocks[0] = firstBlock; - (*alignData)->lastBlocks[0] = lastBlock; } + (*alignData)->firstBlocks[0] = firstBlock; + (*alignData)->lastBlocks[0] = lastBlock; *bestScore_ = -1; *position_ = targetStopPosition; delete[] blocks;