summarylogtreecommitdiffstats
path: root/update-lua-5.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'update-lua-5.3.patch')
-rw-r--r--update-lua-5.3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/update-lua-5.3.patch b/update-lua-5.3.patch
new file mode 100644
index 000000000000..a9925cb8012c
--- /dev/null
+++ b/update-lua-5.3.patch
@@ -0,0 +1,34 @@
+From 4fcbbe9d5434467357867512df827ffc1cf5ccff Mon Sep 17 00:00:00 2001
+From: Francesco Zardi <frazar0@hotmail.it>
+Date: Mon, 7 Nov 2022 19:31:57 +0100
+Subject: [PATCH 1/1] Replace calls to function deprecated in Lua 5.3
+
+---
+ term/lua.trm | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/term/lua.trm b/term/lua.trm
+index 9ac6df9..7b425dc 100644
+--- a/term/lua.trm
++++ b/term/lua.trm
+@@ -247,7 +247,7 @@ LUA_GP_int_error(lua_State *L) {
+ msg = luaL_checkstring(L, 1);
+ break;
+ case 2:
+- t_num = luaL_checkint(L, 1);
++ t_num = luaL_checkinteger(L, 1);
+ msg = luaL_checkstring(L, 2);
+ break;
+ default:
+@@ -281,7 +281,7 @@ LUA_GP_int_warn(lua_State *L) {
+ msg = luaL_checkstring(L, 1);
+ break;
+ case 2:
+- t_num = luaL_checkint(L, 1);
++ t_num = luaL_checkinteger(L, 1);
+ msg = luaL_checkstring(L, 2);
+ break;
+ default:
+--
+2.38.1
+