diff options
| author | ruki <[email protected]> | 2021-10-10 09:59:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-10 09:59:31 +0800 |
| commit | 2e17942f7e29307c64a6404e1b1e9cf753b973b9 (patch) | |
| tree | b1100d01c4911bc96ed98a473213cdb29ca1b0da /core/src | |
| parent | a418cf89392b8df002b4f9e4670ea9cf9a672f6e (diff) | |
fix error
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/sandbox/interactive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/sandbox/interactive.c b/core/src/xmake/sandbox/interactive.c index 3b6ef3ff4..fc0acad12 100644 --- a/core/src/xmake/sandbox/interactive.c +++ b/core/src/xmake/sandbox/interactive.c @@ -258,7 +258,7 @@ static tb_int_t xm_sandbox_loadline(lua_State* lua, tb_int_t top) * stack: arg1(sandbox_scope) scriptbuffer(top) -> ... * after: arg1(sandbox_scope) scriptbuffer scriptfunc(top) -> ... */ - status = luaL_loadbuffer(lua, lua_tostring(lua, -1), lua_strlen(lua, -1), "=stdin"); + status = luaL_loadbuffer(lua, lua_tostring(lua, -1), (size_t)lua_strlen(lua, -1), "=stdin"); // complete? if (!xm_sandbox_incomplete(lua, status)) break; |
