aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index d5366428..321320b0 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.211 2014/05/15 20:08:32 roberto Exp roberto $ 2** $Id: lvm.c,v 2.212 2014/05/20 14:12:59 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*/
@@ -157,7 +157,7 @@ int luaV_tostring (lua_State *L, StkId obj) {
157** Try to convert a 'for' limit to an integer, preserving the 157** Try to convert a 'for' limit to an integer, preserving the
158** semantics of the loop. 158** semantics of the loop.
159** (The following explanation assumes a non-negative step; it is valid 159** (The following explanation assumes a non-negative step; it is valid
160** for negative steps, mutatis mutandis.) 160** for negative steps mutatis mutandis.)
161** If the limit can be converted to an integer, rounding down, that is 161** If the limit can be converted to an integer, rounding down, that is
162** it. 162** it.
163** Otherwise, check whether the limit can be converted to a number. If 163** Otherwise, check whether the limit can be converted to a number. If
@@ -166,7 +166,7 @@ int luaV_tostring (lua_State *L, StkId obj) {
166** should not run, because any initial integer value is larger than the 166** should not run, because any initial integer value is larger than the
167** limit. So, it sets the limit to LUA_MININTEGER. 'stopnow' corrects 167** limit. So, it sets the limit to LUA_MININTEGER. 'stopnow' corrects
168** the extreme case when the initial value is LUA_MININTEGER, in which 168** the extreme case when the initial value is LUA_MININTEGER, in which
169** case the LUA_MININTEGER limit would run the loop once. 169** case the LUA_MININTEGER limit would still run the loop once.
170*/ 170*/
171static int forlimit (const TValue *obj, lua_Integer *p, lua_Integer step, 171static int forlimit (const TValue *obj, lua_Integer *p, lua_Integer step,
172 int *stopnow) { 172 int *stopnow) {