refactor(lua): fix coverity warning from #35536 (#35703)

This commit is contained in:
zeertzjq
2025-09-10 17:14:50 +08:00
committed by GitHub
parent 16018b1117
commit 014c3bad8a

View File

@@ -1671,7 +1671,7 @@ static Object nlua_call_pop_retval(lua_State *lstate, LuaRetMode mode, Arena *ar
Array res = arena_array(arena, (size_t)nres); Array res = arena_array(arena, (size_t)nres);
for (int i = 0; i < nres; i++) { for (int i = 0; i < nres; i++) {
res.items[nres - i - 1] = nlua_pop_Object(lstate, false, arena, perr); res.items[nres - i - 1] = nlua_pop_Object(lstate, false, arena, perr);
if (ERROR_SET(err)) { if (ERROR_SET(perr)) {
return NIL; return NIL;
} }
} }