Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qttorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2015-08-06 22:51:33 +0300
committerSam Gross <colesbury@gmail.com>2015-08-06 22:51:33 +0300
commit39fb14c71495a3ff2ee484ad063d7779fcb04a7c (patch)
tree256d4b962c1f75e9827f6a9b83ab9649b3992168
parent57ce5f2cc4cc2404ac7ddd2bc67c4326b262ba84 (diff)
Lua 5.2 compatibility
-rw-r--r--qttorch.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}