Fix: c99 compliance issue in llex

This commit is contained in:
Cormac Shannon
2026-03-17 18:57:47 +00:00
parent bad40fb65b
commit 8b1b3578ed

3
llex.c
View File

@@ -572,8 +572,9 @@ static int read_command (LexState *ls, SemInfo *seminfo) {
** consumed the '}' that closes an interpolated ${expr}.
*/
int luaX_readcommandcont (LexState *ls) {
int tk;
ls->cmd_mode = ls->saved_cmd_mode; /* restore mode from before interpolation */
int tk = read_command_body(ls, &ls->t.seminfo);
tk = read_command_body(ls, &ls->t.seminfo);
ls->t.token = tk;
return tk;
}