aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:25:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:25:18 -0300
commit90de38bf1f85714526c30e42b670ca997ec45827 (patch)
treec9dbf61d741ddd2ededcba4c1a4da99211c28f7a /lgc.c
parente8a7ecb982effdfc1148098b288c6ac7130f756e (diff)
downloadlua-90de38bf1f85714526c30e42b670ca997ec45827.tar.gz
lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.bz2
lua-90de38bf1f85714526c30e42b670ca997ec45827.zip
warnings in VS .Net
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lgc.c b/lgc.c
index 3d3736f8..eee5555d 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.31 2005/03/22 16:04:29 roberto Exp roberto $ 2** $Id: lgc.c,v 2.32 2005/05/05 15:34:03 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*/
@@ -240,8 +240,8 @@ static void traverseclosure (global_State *g, Closure *cl) {
240 240
241 241
242static void checkstacksizes (lua_State *L, StkId max) { 242static void checkstacksizes (lua_State *L, StkId max) {
243 int ci_used = L->ci - L->base_ci; /* number of `ci' in use */ 243 int ci_used = cast(int, L->ci - L->base_ci); /* number of `ci' in use */
244 int s_used = max - L->stack; /* part of stack in use */ 244 int s_used = cast(int, max - L->stack); /* part of stack in use */
245 if (L->size_ci > LUAI_MAXCALLS) /* handling overflow? */ 245 if (L->size_ci > LUAI_MAXCALLS) /* handling overflow? */
246 return; /* do not touch the stacks */ 246 return; /* do not touch the stacks */
247 if (4*ci_used < L->size_ci && 2*BASIC_CI_SIZE < L->size_ci) 247 if (4*ci_used < L->size_ci && 2*BASIC_CI_SIZE < L->size_ci)