diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index b558d11..fc7f5ef 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -158,7 +158,7 @@ namespace state { | |||
158 | // for some reason, LuaJIT 64 bits does not support creating a state with lua_newstate... | 158 | // for some reason, LuaJIT 64 bits does not support creating a state with lua_newstate... |
159 | return luaL_newstate(); | 159 | return luaL_newstate(); |
160 | } else { | 160 | } else { |
161 | lanes::AllocatorDefinition const _def{ U->resolveAllocator(from, hint) }; | 161 | lanes::AllocatorDefinition const _def{ U->resolveAndValidateAllocator(from, hint) }; |
162 | return _def.newState(); | 162 | return _def.newState(); |
163 | } | 163 | } |
164 | } | 164 | } |