From 39fb14c71495a3ff2ee484ad063d7779fcb04a7c Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Thu, 6 Aug 2015 15:51:33 -0400 Subject: Lua 5.2 compatibility --- qttorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qttorch.cpp b/qttorch.cpp index 00a41a7..edce734 100644 --- a/qttorch.cpp +++ b/qttorch.cpp @@ -47,7 +47,7 @@ int luaopen_libqttorch(lua_State *L) // enrichs QImage luaQ_pushmeta(L, QMetaType::QImage); luaQ_getfield(L, -1, "__metatable"); - luaL_register(L, 0, qttorch_qimage_lib); + luaL_setfuncs(L, qttorch_qimage_lib, 0); return 0; } -- cgit v1.2.3