Lua: fix non-marking reads

This commit is contained in:
Přemysl Eric Janouch 2017-01-26 20:05:08 +01:00
parent 76d689c691
commit 2b6f43d428
Signed by: p
GPG Key ID: B715679E3A361BE6

3
hex.c
View File

@ -1099,7 +1099,10 @@ app_lua_chunk_finish_read
{
int n_args = lua_gettop (L) - 1;
if (n_args < 2)
{
self->position += len;
return;
}
// Prepare <string.format>, <format>, <value>
lua_rawgeti (L, LUA_REGISTRYINDEX, g_ctx.ref_format);