aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-02 14:33:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-02 14:33:01 -0300
commitc9ce754e38712afc1de6325cfa1291324dbdda61 (patch)
tree1e484f55b0899c4958841b7a50ae2d5e3af1f536
parentd34271fe42580c6d93462b4460cb900f604142c9 (diff)
downloadlua-c9ce754e38712afc1de6325cfa1291324dbdda61.tar.gz
lua-c9ce754e38712afc1de6325cfa1291324dbdda61.tar.bz2
lua-c9ce754e38712afc1de6325cfa1291324dbdda61.zip
comment
-rw-r--r--lparser.c4
-rw-r--r--ltable.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index c7130dbf..64c3ccce 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.107 2011/02/23 13:13:10 roberto Exp roberto $ 2** $Id: lparser.c,v 2.108 2011/04/18 19:48:24 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -455,7 +455,7 @@ static void breaklabel (LexState *ls) {
455 455
456/* 456/*
457** generates an error for an undefined 'goto'; choose appropriate 457** generates an error for an undefined 'goto'; choose appropriate
458** message when label name is a resserved word (which can only be 'break') 458** message when label name is a reserved word (which can only be 'break')
459*/ 459*/
460static void undefgoto (LexState *ls, Labeldesc *gt) { 460static void undefgoto (LexState *ls, Labeldesc *gt) {
461 const char *msg = (gt->name->tsv.reserved > 0) 461 const char *msg = (gt->name->tsv.reserved > 0)
diff --git a/ltable.c b/ltable.c
index 4fbd4ded..e8789a55 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.53 2010/11/11 15:38:43 roberto Exp roberto $ 2** $Id: ltable.c,v 2.54 2011/04/05 18:32:28 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -336,7 +336,7 @@ void luaH_resizearray (lua_State *L, Table *t, int nasize) {
336 336
337static void rehash (lua_State *L, Table *t, const TValue *ek) { 337static void rehash (lua_State *L, Table *t, const TValue *ek) {
338 int nasize, na; 338 int nasize, na;
339 int nums[MAXBITS+1]; /* nums[i] = number of keys between 2^(i-1) and 2^i */ 339 int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */
340 int i; 340 int i;
341 int totaluse; 341 int totaluse;
342 for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */ 342 for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */