Skip to content

Commit 91f884d

Browse files
committed
fixed compile error at lua 5.1/5.2
miss in ba4f880
1 parent 9823b0c commit 91f884d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/kaguya/object.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace kaguya
6262
if (luaL_newmetatable(l, metatablename))
6363
{
6464
#if LUA_VERSION_NUM < 503
65-
lua_pushstring(l, metatableName<T>().c_str());
65+
lua_pushstring(l, metatablename);
6666
lua_setfield(l, -2, "__name");
6767
#endif
6868
lua_pushstring(l, metatablename);

0 commit comments

Comments
 (0)