Skip to content

Commit 59a43eb

Browse files
committed
revert ci change
1 parent e8ba286 commit 59a43eb

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

crates/luars/src/lua_vm/execute/execute_loop.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,13 +1866,12 @@ pub fn lua_execute(lua_state: &mut LuaState, target_depth: usize) -> LuaResult<(
18661866
let b = instr.get_b() as usize;
18671867
let nresults = instr.get_c() as i32 - 1;
18681868
let func_idx = stack_id!(a);
1869-
let nargs;
1870-
if b != 0 {
1869+
let nargs = if b != 0 {
18711870
lua_state.set_top_raw(func_idx + b);
1872-
nargs = b - 1;
1871+
b - 1
18731872
} else {
1874-
nargs = lua_state.get_top() - func_idx - 1;
1875-
}
1873+
lua_state.get_top() - func_idx - 1
1874+
};
18761875
ci.save_pc(pc);
18771876
if precall(lua_state, func_idx, nargs, nresults)? {
18781877
// Lua call: new frame pushed

0 commit comments

Comments
 (0)