mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
One more
This commit is contained in:
parent
699660a4eb
commit
0062000d46
@ -200,7 +200,7 @@ static lua_Page* newpage(lua_State* L, lua_Page** gcopageset, int pageSize, int
|
|||||||
|
|
||||||
global_State* g = L->global;
|
global_State* g = L->global;
|
||||||
|
|
||||||
LUAU_ASSERT(pageSize - offsetof(lua_Page, data) >= blockSize * blockCount);
|
LUAU_ASSERT(pageSize - int(offsetof(lua_Page, data)) >= blockSize * blockCount);
|
||||||
|
|
||||||
lua_Page* page = (lua_Page*)(*g->frealloc)(L, g->ud, NULL, 0, pageSize);
|
lua_Page* page = (lua_Page*)(*g->frealloc)(L, g->ud, NULL, 0, pageSize);
|
||||||
if (!page)
|
if (!page)
|
||||||
|
Loading…
Reference in New Issue
Block a user