Skip to content

Commit

Permalink
fixed errors in debug mode at insertPathIntoResults
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Nov 1, 2023
1 parent f853ffe commit fda4108
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Kiwi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,7 @@ namespace kiwi
size_t validTarget = 0;
for (size_t i = 0; i < ret.size(); ++i)
{
auto& r = pathes[parentMap[i]];
auto& rarr = ret[validTarget].first;

if (parentMap[i] < pathes.size() && spStateCnt[r.curState] < topN)
if (parentMap[i] < pathes.size() && spStateCnt[pathes[parentMap[i]].curState] < topN)
{
if (validTarget != i) ret[validTarget] = move(ret[i]);
}
Expand All @@ -678,6 +675,9 @@ namespace kiwi
continue;
}

auto& r = pathes[parentMap[i]];
auto& rarr = ret[validTarget].first;

const KString* prevMorph = nullptr;
for (auto& s : r.path)
{
Expand Down

0 comments on commit fda4108

Please sign in to comment.