Merge "Fix: write bigram entry at wrong position."

main
Keisuke Kuroyanagi 2013-12-02 11:49:43 +00:00 committed by Android (Google) Code Review
commit 7c62f10e2d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}