forked from openkylin/ukui-search
同步分词模块<更新分词基础词库内容,分词准确性提升>
This commit is contained in:
parent
65f61447fb
commit
6f3c610896
File diff suppressed because it is too large
Load Diff
|
@ -65,7 +65,7 @@ bool Pinyin4cppDataTrie::InitAttachDat(const string &dat_cache_file, const strin
|
|||
const auto seek_off = lseek(m_mmapFd, 0, SEEK_END);
|
||||
assert(seek_off >= 0);
|
||||
|
||||
m_mmapLength = seek_off;
|
||||
m_mmapLength = static_cast<size_t>(seek_off);
|
||||
m_mmapAddr = reinterpret_cast<char *>(mmap(NULL, m_mmapLength, PROT_READ, MAP_SHARED, m_mmapFd, 0));
|
||||
assert(MAP_FAILED != m_mmapAddr);
|
||||
assert(m_mmapLength >= sizeof(CacheFileHeader));
|
||||
|
|
Loading…
Reference in New Issue