From 7bd1e53753de7176eb0b23f2bf19ad2235dec826 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 4 Oct 2019 16:17:04 -0300 Subject: Fixed a warning and other minor issues Fixed some minor issues from the feedback for 5.4-beta rc1. --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 2dcd320c..8c812039 100644 --- a/lparser.c +++ b/lparser.c @@ -1523,8 +1523,8 @@ static void fixforjump (FuncState *fs, int pc, int dest, int back) { */ static void forbody (LexState *ls, int base, int line, int nvars, int isgen) { /* forbody -> DO block */ - static OpCode forprep[2] = {OP_FORPREP, OP_TFORPREP}; - static OpCode forloop[2] = {OP_FORLOOP, OP_TFORLOOP}; + static const OpCode forprep[2] = {OP_FORPREP, OP_TFORPREP}; + static const OpCode forloop[2] = {OP_FORLOOP, OP_TFORLOOP}; BlockCnt bl; FuncState *fs = ls->fs; int prep, endfor; -- cgit v1.2.1