mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fix(build): issues with s390x CI
Does not fix everything, but at least let's test run to finish before timeout
This commit is contained in:
@@ -185,7 +185,12 @@ static mmfile_t get_string_arg(lua_State *lstate, int idx)
|
||||
luaL_argerror(lstate, idx, "expected string");
|
||||
}
|
||||
mmfile_t mf;
|
||||
mf.ptr = (char *)lua_tolstring(lstate, idx, (size_t *)&mf.size);
|
||||
size_t size;
|
||||
mf.ptr = (char *)lua_tolstring(lstate, idx, &size);
|
||||
if (size > INT_MAX) {
|
||||
luaL_argerror(lstate, idx, "string too long");
|
||||
}
|
||||
mf.size = (int)size;
|
||||
return mf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user