aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lcode.c b/lcode.c
index c54ae525..450b2eeb 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.27 2006/08/07 19:14:30 roberto Exp roberto $ 2** $Id: lcode.c,v 2.28 2006/09/14 12:59:06 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -235,7 +235,7 @@ static int addk (FuncState *fs, TValue *key, TValue *v) {
235 int oldsize = f->sizek; 235 int oldsize = f->sizek;
236 k = fs->nk; 236 k = fs->nk;
237 setnvalue(idx, cast_num(k)); 237 setnvalue(idx, cast_num(k));
238 luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Bx, "constant table"); 238 luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Bx, "constants");
239 while (oldsize < f->sizek) setnilvalue(&f->k[oldsize++]); 239 while (oldsize < f->sizek) setnilvalue(&f->k[oldsize++]);
240 setobj(L, &f->k[k], v); 240 setobj(L, &f->k[k], v);
241 fs->nk++; 241 fs->nk++;
@@ -786,11 +786,11 @@ static int luaK_code (FuncState *fs, Instruction i, int line) {
786 dischargejpc(fs); /* `pc' will change */ 786 dischargejpc(fs); /* `pc' will change */
787 /* put new instruction in code array */ 787 /* put new instruction in code array */
788 luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction, 788 luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction,
789 MAX_INT, "code size"); 789 MAX_INT, "opcodes");
790 f->code[fs->pc] = i; 790 f->code[fs->pc] = i;
791 /* save corresponding line information */ 791 /* save corresponding line information */
792 luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int, 792 luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
793 MAX_INT, "code size"); 793 MAX_INT, "opcodes");
794 f->lineinfo[fs->pc] = line; 794 f->lineinfo[fs->pc] = line;
795 return fs->pc++; 795 return fs->pc++;
796} 796}