aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.c
parente8a7ecb982effdfc1148098b288c6ac7130f756e (diff)
downloadlua-90de38bf1f85714526c30e42b670ca997ec45827.tar.gz
lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.bz2
lua-90de38bf1f85714526c30e42b670ca997ec45827.zip
warnings in VS .Net
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index f9577bf5..c44ac8c6 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.44 2005/05/17 19:49:15 roberto Exp roberto $ 2** $Id: lvm.c,v 2.45 2005/05/20 15:53:42 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -720,7 +720,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
720 int last; 720 int last;
721 Table *h; 721 Table *h;
722 if (n == 0) { 722 if (n == 0) {
723 n = L->top - ra - 1; 723 n = cast(int, L->top - ra) - 1;
724 L->top = L->ci->top; 724 L->top = L->ci->top;
725 } 725 }
726 if (c == 0) c = cast(int, *pc++); 726 if (c == 0) c = cast(int, *pc++);
@@ -764,7 +764,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
764 int b = GETARG_B(i) - 1; 764 int b = GETARG_B(i) - 1;
765 int j; 765 int j;
766 CallInfo *ci = L->ci; 766 CallInfo *ci = L->ci;
767 int n = ci->base - ci->func - cl->p->numparams - 1; 767 int n = cast(int, ci->base - ci->func) - cl->p->numparams - 1;
768 if (b == LUA_MULTRET) { 768 if (b == LUA_MULTRET) {
769 b = n; 769 b = n;
770 L->top = ra + n; 770 L->top = ra + n;