Lua: fix non-marking reads
This commit is contained in:
3
hex.c
3
hex.c
@@ -1099,7 +1099,10 @@ app_lua_chunk_finish_read
|
|||||||
{
|
{
|
||||||
int n_args = lua_gettop (L) - 1;
|
int n_args = lua_gettop (L) - 1;
|
||||||
if (n_args < 2)
|
if (n_args < 2)
|
||||||
|
{
|
||||||
|
self->position += len;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Prepare <string.format>, <format>, <value>
|
// Prepare <string.format>, <format>, <value>
|
||||||
lua_rawgeti (L, LUA_REGISTRYINDEX, g_ctx.ref_format);
|
lua_rawgeti (L, LUA_REGISTRYINDEX, g_ctx.ref_format);
|
||||||
|
|||||||
Reference in New Issue
Block a user