summarylogtreecommitdiffstats
path: root/update-lua-5.3.patch
blob: a9925cb8012c1dd4a3ca75ce60b4e5ff96e35ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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