aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index b5d0c76d..76fe33df 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.128 2001/01/31 13:13:17 roberto Exp roberto $ 2** $Id: lparser.c,v 1.129 2001/02/05 17:48:52 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -261,11 +261,11 @@ static void adjust_mult_assign (LexState *ls, int nvars, int nexps) {
261} 261}
262 262
263 263
264static void code_params (LexState *ls, int nparams, int dots) { 264static void code_params (LexState *ls, int nparams, short dots) {
265 FuncState *fs = ls->fs; 265 FuncState *fs = ls->fs;
266 adjustlocalvars(ls, nparams); 266 adjustlocalvars(ls, nparams);
267 luaX_checklimit(ls, fs->nactloc, MAXPARAMS, "parameters"); 267 luaX_checklimit(ls, fs->nactloc, MAXPARAMS, "parameters");
268 fs->f->numparams = fs->nactloc; /* `self' could be there already */ 268 fs->f->numparams = (short)fs->nactloc; /* `self' could be there already */
269 fs->f->is_vararg = dots; 269 fs->f->is_vararg = dots;
270 if (dots) { 270 if (dots) {
271 new_localvarstr(ls, "arg", 0); 271 new_localvarstr(ls, "arg", 0);
@@ -1093,7 +1093,7 @@ static int stat (LexState *ls) {
1093static void parlist (LexState *ls) { 1093static void parlist (LexState *ls) {
1094 /* parlist -> [ param { ',' param } ] */ 1094 /* parlist -> [ param { ',' param } ] */
1095 int nparams = 0; 1095 int nparams = 0;
1096 int dots = 0; 1096 short dots = 0;
1097 if (ls->t.token != ')') { /* is `parlist' not empty? */ 1097 if (ls->t.token != ')') { /* is `parlist' not empty? */
1098 do { 1098 do {
1099 switch (ls->t.token) { 1099 switch (ls->t.token) {