aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
commit4590a89b32b62c75fca7ced96c282c7793b8885c (patch)
tree99ec05f9ba4ca157cbc8736d0b923d479065bf54 /lgc.c
parent1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff)
downloadlua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.gz
lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.bz2
lua-4590a89b32b62c75fca7ced96c282c7793b8885c.zip
corrected warnings from different compilers (mostly casts and small
details)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index beccc1a6..f7072ab7 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.101 2010/06/30 14:11:17 roberto Exp roberto $ 2** $Id: lgc.c,v 2.102 2010/09/03 14:14:01 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -449,7 +449,7 @@ static int traverseproto (global_State *g, Proto *f) {
449} 449}
450 450
451 451
452static l_mem traverseclosure (global_State *g, Closure *cl) { 452static int traverseclosure (global_State *g, Closure *cl) {
453 if (cl->c.isC) { 453 if (cl->c.isC) {
454 int i; 454 int i;
455 for (i=0; i<cl->c.nupvalues; i++) /* mark its upvalues */ 455 for (i=0; i<cl->c.nupvalues; i++) /* mark its upvalues */