aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-17 16:49:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-17 16:49:15 -0300
commit67578ec51f1a3ec2c967f15d370067caf9e0b87b (patch)
treed77b292ddec33d7e6987bae808fa1db250ebd830 /lvm.c
parentc2bb9abceceef125554595e23b7cc18ad3555c7c (diff)
downloadlua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.gz
lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.bz2
lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.zip
several small details
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lvm.c b/lvm.c
index 700dd337..7cb11199 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.42 2005/05/04 20:42:28 roberto Exp roberto $ 2** $Id: lvm.c,v 2.43 2005/05/16 21:19:00 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*/
@@ -688,11 +688,11 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
688 const TValue *pstep = ra+2; 688 const TValue *pstep = ra+2;
689 L->savedpc = pc; /* next steps may throw errors */ 689 L->savedpc = pc; /* next steps may throw errors */
690 if (!tonumber(init, ra)) 690 if (!tonumber(init, ra))
691 luaG_runerror(L, "'for' initial value must be a number"); 691 luaG_runerror(L, LUA_QL("for") " initial value must be a number");
692 else if (!tonumber(plimit, ra+1)) 692 else if (!tonumber(plimit, ra+1))
693 luaG_runerror(L, "'for' limit must be a number"); 693 luaG_runerror(L, LUA_QL("for") " limit must be a number");
694 else if (!tonumber(pstep, ra+2)) 694 else if (!tonumber(pstep, ra+2))
695 luaG_runerror(L, "'for' step must be a number"); 695 luaG_runerror(L, LUA_QL("for") " step must be a number");
696 setnvalue(ra, luai_numsub(nvalue(ra), nvalue(pstep))); 696 setnvalue(ra, luai_numsub(nvalue(ra), nvalue(pstep)));
697 dojump(L, pc, GETARG_sBx(i)); 697 dojump(L, pc, GETARG_sBx(i));
698 continue; 698 continue;