commit ffaf7ab: [Minor] Improve lua 5.3 compatibility

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Feb 8 14:35:08 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-08 14:31:52 +0000
URL: https://github.com/rspamd/rspamd/commit/ffaf7ab5639886a9a5493de8387d9a45c978c9cd

[Minor] Improve lua 5.3 compatibility

---
 src/lua/lua_mimepart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index b66ad4215..4bfa60456 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -1785,7 +1785,7 @@ lua_mimepart_get_id (lua_State * L)
 		return luaL_error (L, "invalid arguments");
 	}
 
-	lua_pushnumber (L, part->id);
+	lua_pushinteger (L, part->id);
 
 	return 1;
 }


More information about the Commits mailing list