]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Save int64 as lua_Integer not lua_Number
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Oct 2021 09:42:26 +0000 (10:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Oct 2021 09:42:26 +0000 (10:42 +0100)
src/lua/lua_util.c

index 8d8a6db5e57cd6b2dd78e52616efaeb7b237ab0e..570a51be77a29ffc3437a5b15bdc4347db619eb6 100644 (file)
@@ -3536,7 +3536,7 @@ lua_int64_tonumber (lua_State *L)
        gdouble d;
 
        d = n;
-       lua_pushnumber (L, d);
+       lua_pushinteger (L, d);
 
        return 1;
 }