diff options
author | Soumith Chintala <soumith@gmail.com> | 2015-08-17 22:01:43 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2015-08-17 22:01:43 +0300 |
commit | 0d537ffe91ba33429cdcf5ed424e770d04749586 (patch) | |
tree | 256d4b962c1f75e9827f6a9b83ab9649b3992168 | |
parent | 57ce5f2cc4cc2404ac7ddd2bc67c4326b262ba84 (diff) | |
parent | 39fb14c71495a3ff2ee484ad063d7779fcb04a7c (diff) |
Merge pull request #3 from colesbury/lua52
Lua 5.2 compatibility
-rw-r--r-- | qttorch.cpp | 2 |
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; } |