Index: core/src/fxcrt/fx_basic_memmgr.cpp |
diff --git a/core/src/fxcrt/fx_basic_memmgr.cpp b/core/src/fxcrt/fx_basic_memmgr.cpp |
index a381fa4ef53bf8c686df88bf3c13c71d753f2a59..2ae9075f04856c102688e5d8fa0769bbe20981b5 100644 |
--- a/core/src/fxcrt/fx_basic_memmgr.cpp |
+++ b/core/src/fxcrt/fx_basic_memmgr.cpp |
@@ -56,7 +56,7 @@ void* CFX_GrowOnlyPool::Alloc(size_t size) |
_FX_GrowOnlyTrunk* pTrunk = (_FX_GrowOnlyTrunk*)m_pFirstTrunk; |
while (pTrunk) { |
if (pTrunk->m_Size - pTrunk->m_Allocated >= size) { |
- void* p = (FX_LPBYTE)(pTrunk + 1) + pTrunk->m_Allocated; |
+ void* p = (uint8_t*)(pTrunk + 1) + pTrunk->m_Allocated; |
pTrunk->m_Allocated += size; |
return p; |
} |