diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
commit | 4590a89b32b62c75fca7ced96c282c7793b8885c (patch) | |
tree | 99ec05f9ba4ca157cbc8736d0b923d479065bf54 /lgc.c | |
parent | 1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
452 | static l_mem traverseclosure (global_State *g, Closure *cl) { | 452 | static 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 */ |