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

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <sgross@fb.com>2015-04-29 21:24:17 +0300
committerSam Gross <sgross@fb.com>2015-04-29 21:38:27 +0300
commitf30fc341f72ffa4fbf6af6a18fac8c81f0cecf90 (patch)
tree5e7a1e0803e711825c32ab164cb3fcb75c63320d /TensorOperator.c
parent48eb1c5a3397fb6929ac59f805299a9d56c22903 (diff)
Lua 5.2 compatibility
Diffstat (limited to 'TensorOperator.c')
-rw-r--r--TensorOperator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TensorOperator.c b/TensorOperator.c
index 609f858..a5dab99 100644
--- a/TensorOperator.c
+++ b/TensorOperator.c
@@ -171,6 +171,6 @@ static const struct luaL_Reg cutorch_CudaTensorOperator__ [] = {
void cutorch_CudaTensorOperator_init(lua_State *L)
{
luaT_pushmetatable(L, "torch.CudaTensor");
- luaL_register(L, NULL, cutorch_CudaTensorOperator__);
+ luaL_setfuncs(L, cutorch_CudaTensorOperator__, 0);
lua_pop(L, 1);
}