diff options
author | Sam Gross <sgross@fb.com> | 2015-04-29 21:24:17 +0300 |
---|---|---|
committer | Sam Gross <sgross@fb.com> | 2015-04-29 21:38:27 +0300 |
commit | f30fc341f72ffa4fbf6af6a18fac8c81f0cecf90 (patch) | |
tree | 5e7a1e0803e711825c32ab164cb3fcb75c63320d /TensorOperator.c | |
parent | 48eb1c5a3397fb6929ac59f805299a9d56c22903 (diff) |
Lua 5.2 compatibility
Diffstat (limited to 'TensorOperator.c')
-rw-r--r-- | TensorOperator.c | 2 |
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); } |