fix MM_SYNC typo #597

This commit is contained in:
guoling
2020-12-17 18:13:02 +08:00
parent d8416b5b4f
commit a6c336d707
+1 -1
View File
@@ -102,7 +102,7 @@ bool MemoryFile::truncate(size_t size) {
bool MemoryFile::msync(SyncFlag syncFlag) {
if (m_ptr) {
auto ret = ::msync(m_ptr, m_size, syncFlag ? MMKV_SYNC : MMKV_ASYNC);
auto ret = ::msync(m_ptr, m_size, syncFlag ? MS_SYNC : MS_ASYNC);
if (ret == 0) {
return true;
}