am 7c62f10e: Merge "Fix: write bigram entry at wrong position."
* commit '7c62f10e2dafeed7582937370af005647c584682': Fix: write bigram entry at wrong position.main
commit
ffd6027167
|
@ -189,7 +189,7 @@ bool BigramDictContent::runGCBigramList(const int bigramListPos,
|
||||||
// Update has next flag in the last written entry.
|
// Update has next flag in the last written entry.
|
||||||
const BigramEntry bigramEntry = getBigramEntry(lastEntryPos).updateHasNextAndGetEntry(
|
const BigramEntry bigramEntry = getBigramEntry(lastEntryPos).updateHasNextAndGetEntry(
|
||||||
false /* hasNext */);
|
false /* hasNext */);
|
||||||
if (!writeBigramEntry(&bigramEntry, writingPos)) {
|
if (!writeBigramEntry(&bigramEntry, lastEntryPos)) {
|
||||||
AKLOGE("Cannot write bigram entry to set hasNext flag after GC. pos: %d", writingPos);
|
AKLOGE("Cannot write bigram entry to set hasNext flag after GC. pos: %d", writingPos);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue