aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-04 16:17:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-04 16:17:04 -0300
commit7bd1e53753de7176eb0b23f2bf19ad2235dec826 (patch)
tree6b8be4dcec4e71ccf6e85f3bfa95a7bfd544714f /lparser.c
parentb98d41db99969f6336c32cb67274093b9a548d39 (diff)
downloadlua-7bd1e53753de7176eb0b23f2bf19ad2235dec826.tar.gz
lua-7bd1e53753de7176eb0b23f2bf19ad2235dec826.tar.bz2
lua-7bd1e53753de7176eb0b23f2bf19ad2235dec826.zip
Fixed a warning and other minor issues
Fixed some minor issues from the feedback for 5.4-beta rc1.
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
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) {
1523*/ 1523*/
1524static void forbody (LexState *ls, int base, int line, int nvars, int isgen) { 1524static void forbody (LexState *ls, int base, int line, int nvars, int isgen) {
1525 /* forbody -> DO block */ 1525 /* forbody -> DO block */
1526 static OpCode forprep[2] = {OP_FORPREP, OP_TFORPREP}; 1526 static const OpCode forprep[2] = {OP_FORPREP, OP_TFORPREP};
1527 static OpCode forloop[2] = {OP_FORLOOP, OP_TFORLOOP}; 1527 static const OpCode forloop[2] = {OP_FORLOOP, OP_TFORLOOP};
1528 BlockCnt bl; 1528 BlockCnt bl;
1529 FuncState *fs = ls->fs; 1529 FuncState *fs = ls->fs;
1530 int prep, endfor; 1530 int prep, endfor;