From 8b1b3578ed87689f3ed637eaa7e698c46479c729 Mon Sep 17 00:00:00 2001 From: Cormac Shannon <> Date: Tue, 17 Mar 2026 18:57:47 +0000 Subject: [PATCH] Fix: c99 compliance issue in llex --- llex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llex.c b/llex.c index 17e5a986..8541edcb 100644 --- a/llex.c +++ b/llex.c @@ -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; }