We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b8e44 commit 966c684Copy full SHA for 966c684
lgi/core.c
@@ -576,7 +576,7 @@ core_module (lua_State *L)
576
}
577
578
/* Embed the module in the userdata for the module. */
579
- *(GModule **) lua_newuserdata (L, sizeof (module)) = module;
+ *(GModule **) lua_newuserdata (L, sizeof (GModule *)) = module;
580
luaL_getmetatable (L, UD_MODULE);
581
lua_setmetatable (L, -2);
582
lgi/gi.c
@@ -28,7 +28,7 @@ lgi_gi_info_new (lua_State *L, GIBaseInfo *info)
28
29
else
30
{
31
- ud_info = lua_newuserdata (L, sizeof (info));
+ ud_info = lua_newuserdata (L, sizeof (GIBaseInfo *));
32
*ud_info = info;
33
luaL_getmetatable (L, LGI_GI_INFO);
34
0 commit comments