Re: Similar issue with 'luaL_newmetatable' in I/O standard library

Roberto Ierusalimschy <[email protected]> Tue, 21 Jul 2026 15:21:14 -0300
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
> Additionally, shouldn't 'lua_setupvalue' have 'api_checkpop' and not
> 'api_checknelems'?
> 
> And in 'lua_concat'
> 
>   lua_lock(L);
>   api_checknelems(L, n);
>   if (n > 0) {
> +   api_checkpop(L, n - 1);
>     luaV_concat(L, n);
>     luaC_checkGC(L);
>   }
>   ...
> 
> Or am I missing something?

That's correct, both api_checknelems should be api_checkpop. Thanks for
the feedback.

-- Roberto

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260721182114.GA60592%40arraial.inf.puc-rio.br.