From 4f434861ea892ebd04e1341b63bfa1540e2db73c Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Tue, 23 Jul 2024 16:15:19 +0300 Subject: fix attempt 4 --- src/luarocks/core/util.lua | 2 +- src/luarocks/core/util.tl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/core/util.lua b/src/luarocks/core/util.lua index fae8625a..f72f1ec6 100644 --- a/src/luarocks/core/util.lua +++ b/src/luarocks/core/util.lua @@ -192,7 +192,7 @@ function util.split_string(str, delim, maxNb) for part, pos in string.gmatch(str, pat) do nb = nb + 1 result[nb] = part - lastPos = math.tointeger(tonumber(pos)) + lastPos = tonumber(pos) if nb == maxNb then break end end diff --git a/src/luarocks/core/util.tl b/src/luarocks/core/util.tl index 9b23c083..ffdb6bc4 100644 --- a/src/luarocks/core/util.tl +++ b/src/luarocks/core/util.tl @@ -192,7 +192,7 @@ function util.split_string(str: string, delim: string, maxNb?: number): {string} for part, pos in string.gmatch(str, pat) do nb = nb + 1 result[nb] = part - lastPos = math.tointeger(tonumber(pos)) + lastPos = tonumber(pos) as integer if nb == maxNb then break end end -- Handle the last field -- cgit v1.2.3-55-g6feb