Skip to content

Commit

Permalink
fix gcc compile error, missing typename keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
gengyong authored Apr 12, 2024
1 parent 9ed10c7 commit 6613132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luaaa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,7 @@ namespace LUAAA_NS
#else
luaL_Reg regtab = { nullptr, nullptr };
luaL_openlib(m_state, m_moduleName, &regtab, 0);
auto uData = (LuaClass<TCLASS, TAG>::UserDataDetail*)lua_newuserdata(m_state, sizeof(LuaClass<TCLASS, TAG>::UserDataDetail));
auto uData = (typename LuaClass<TCLASS, TAG>::UserDataDetail*)lua_newuserdata(m_state, sizeof(typename LuaClass<TCLASS, TAG>::UserDataDetail));
if (uData)
{
uData->obj = userData.obj;
Expand Down

0 comments on commit 6613132

Please sign in to comment.