am 5a20827f: Fix native crash.

* commit '5a20827fc7ea9425d6a1d336681e1b1cc1c7d0a3':
  Fix native crash.
main
Keisuke Kuroyanagi 2014-09-19 12:15:25 +00:00 committed by Android Git Automerger
commit e4497decf2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PatriciaTriePolicy : public DictionaryStructureWithBufferPolicy {
PatriciaTriePolicy(MmappedBuffer::MmappedBufferPtr mmappedBuffer)
: mMmappedBuffer(std::move(mmappedBuffer)),
mHeaderPolicy(mMmappedBuffer->getReadOnlyByteArrayView().data(),
FormatUtils::detectFormatVersion(mmappedBuffer->getReadOnlyByteArrayView())),
FormatUtils::detectFormatVersion(mMmappedBuffer->getReadOnlyByteArrayView())),
mBuffer(mMmappedBuffer->getReadOnlyByteArrayView().skip(mHeaderPolicy.getSize())),
mBigramListPolicy(mBuffer), mShortcutListPolicy(mBuffer),
mPtNodeReader(mBuffer, &mBigramListPolicy, &mShortcutListPolicy,