From f83de8e34e24e30acf277f60de62a33bd51d1ddd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 30 Sep 2020 15:10:12 -0300 Subject: [PATCH] Wrong cast in 'str_unpack' --- lstrlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lstrlib.c b/lstrlib.c index 2ba8bde4..a30ec5af 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1738,7 +1738,7 @@ static int str_unpack (lua_State *L) { break; } case Kzstr: { - size_t len = (int)strlen(data + pos); + size_t len = strlen(data + pos); luaL_argcheck(L, pos + len < ld, 2, "unfinished string for format 'z'"); lua_pushlstring(L, data + pos, len);