commit 4ad38df: [Minor] Save int64 as lua_Integer not lua_Number
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Oct 20 10:35:07 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-20 10:42:26 +0100
URL: https://github.com/rspamd/rspamd/commit/4ad38df0fe563e820a70de78adcaee1ab13e705b
[Minor] Save int64 as lua_Integer not lua_Number
---
src/lua/lua_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 8d8a6db5e..570a51be7 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -3536,7 +3536,7 @@ lua_int64_tonumber (lua_State *L)
gdouble d;
d = n;
- lua_pushnumber (L, d);
+ lua_pushinteger (L, d);
return 1;
}
More information about the Commits
mailing list