Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lgi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ core_module (lua_State *L)
}

/* Embed the module in the userdata for the module. */
*(GModule **) lua_newuserdata (L, sizeof (module)) = module;
*(GModule **) lua_newuserdata (L, sizeof (GModule *)) = module;
luaL_getmetatable (L, UD_MODULE);
lua_setmetatable (L, -2);

Expand Down
2 changes: 1 addition & 1 deletion lgi/gi.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ lgi_gi_info_new (lua_State *L, GIBaseInfo *info)
}
else
{
ud_info = lua_newuserdata (L, sizeof (info));
ud_info = lua_newuserdata (L, sizeof (GIBaseInfo *));
*ud_info = info;
luaL_getmetatable (L, LGI_GI_INFO);
lua_setmetatable (L, -2);
Expand Down