aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-21 13:52:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-21 13:52:09 -0300
commit191fd35f0a6cd47ea03417a663395acf5d0e9bf5 (patch)
treefc338f9bf9d2ce0142f839ac4020590c446a2739
parentd6978d03e195fe4af788fe5078ec4f1df601405e (diff)
downloadlua-191fd35f0a6cd47ea03417a663395acf5d0e9bf5.tar.gz
lua-191fd35f0a6cd47ea03417a663395acf5d0e9bf5.tar.bz2
lua-191fd35f0a6cd47ea03417a663395acf5d0e9bf5.zip
warnings from Visual C++
-rw-r--r--ldebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index c9b045bc..a9503ccd 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.65 2001/02/20 18:15:33 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.66 2001/02/20 18:28:11 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -351,7 +351,7 @@ static int checkjump_aux (const Proto *pt, lu_byte *sl, int top, int pc) {
351 check(0 <= pc && pc < pt->sizecode); 351 check(0 <= pc && pc < pt->sizecode);
352 if (sl == NULL) return 1; /* not full checking */ 352 if (sl == NULL) return 1; /* not full checking */
353 if (sl[pc] == SL_EMPTY) 353 if (sl[pc] == SL_EMPTY)
354 sl[pc] = top; 354 sl[pc] = (lu_byte)top;
355 else 355 else
356 check(sl[pc] == top); 356 check(sl[pc] == top);
357 return 1; 357 return 1;
@@ -375,7 +375,7 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt,
375 pc = 0; 375 pc = 0;
376 if (pt->is_vararg) /* varargs? */ 376 if (pt->is_vararg) /* varargs? */
377 top++; /* `arg' */ 377 top++; /* `arg' */
378 if (sl) sl[0] = top; 378 if (sl) sl[0] = (lu_byte)top;
379 while (pc < lastpc) { 379 while (pc < lastpc) {
380 const Instruction i = pt->code[pc++]; 380 const Instruction i = pt->code[pc++];
381 OpCode op = GET_OPCODE(i); 381 OpCode op = GET_OPCODE(i);