diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 14:54:56 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 14:54:56 +0100 |
commit | 7acc7867a8ebee0a3467a382b6998cb4e95580ed (patch) | |
tree | 13f55245154b235b6a207e416d712702869644a0 /src/state.cpp | |
parent | a57690123ae3ce5bdd7e970690f1380e88e4eaf6 (diff) | |
download | lanes-7acc7867a8ebee0a3467a382b6998cb4e95580ed.tar.gz lanes-7acc7867a8ebee0a3467a382b6998cb4e95580ed.tar.bz2 lanes-7acc7867a8ebee0a3467a382b6998cb4e95580ed.zip |
Fix test "allocator = <bad C function>" not failing against LuaJIT like it should
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 | } |