Skip to content
Snippets Groups Projects
Commit 33dd9d1e authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: write bigram entry at wrong position.

Change-Id: I69ef84c764243e44145fd906ba3332e02d3b1aa1
parent 770b0087
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ bool BigramDictContent::runGCBigramList(const int bigramListPos,
// Update has next flag in the last written entry.
const BigramEntry bigramEntry = getBigramEntry(lastEntryPos).updateHasNextAndGetEntry(
false /* hasNext */);
if (!writeBigramEntry(&bigramEntry, writingPos)) {
if (!writeBigramEntry(&bigramEntry, lastEntryPos)) {
AKLOGE("Cannot write bigram entry to set hasNext flag after GC. pos: %d", writingPos);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment