From 4ad38df0fe563e820a70de78adcaee1ab13e705b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Oct 2021 10:42:26 +0100 Subject: [PATCH] [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; } -- 2.39.5