commit 072aec8: [Minor] Fix method
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Aug 4 14:35:12 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-08-04 15:28:08 +0100
URL: https://github.com/rspamd/rspamd/commit/072aec83beaf8b9171084cd494d181871439075f (HEAD -> master)
[Minor] Fix method
---
lualib/lua_ffi/linalg.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lualib/lua_ffi/linalg.lua b/lualib/lua_ffi/linalg.lua
index 85e84b5ac..ae71fc08b 100644
--- a/lualib/lua_ffi/linalg.lua
+++ b/lualib/lua_ffi/linalg.lua
@@ -44,7 +44,7 @@ local function ffi_to_table(a, m, n)
for i=0,m-1 do
res[i + 1] = {}
for j=0,n-1 do
- res[i + 1][j + 1] = a[i][j]
+ res[i + 1][j + 1] = a[i * n + j]
end
end
More information about the Commits
mailing list