diff options
Diffstat (limited to 'src/tools.c')
-rw-r--r-- | src/tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools.c b/src/tools.c index 80e0f71..6f4a06a 100644 --- a/src/tools.c +++ b/src/tools.c | |||
@@ -183,7 +183,7 @@ static void* protected_lua_Alloc( void *ud, void *ptr, size_t osize, size_t nsiz | |||
183 | static int luaG_provide_protected_allocator( lua_State* L) | 183 | static int luaG_provide_protected_allocator( lua_State* L) |
184 | { | 184 | { |
185 | Universe* U = universe_get( L); | 185 | Universe* U = universe_get( L); |
186 | AllocatorDefinition* const def = lua_newuserdatauv( L, sizeof(AllocatorDefinition), 0); | 186 | AllocatorDefinition* const def = (AllocatorDefinition*) lua_newuserdatauv( L, sizeof(AllocatorDefinition), 0); |
187 | def->allocF = protected_lua_Alloc; | 187 | def->allocF = protected_lua_Alloc; |
188 | def->allocUD = &U->protected_allocator; | 188 | def->allocUD = &U->protected_allocator; |
189 | return 1; | 189 | return 1; |