aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 57e2b657..d4dca320 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.235 2015/02/20 14:27:53 roberto Exp roberto $ 2** $Id: lvm.c,v 2.236 2015/03/02 16:04:52 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*/
@@ -127,7 +127,7 @@ static int forlimit (const TValue *obj, lua_Integer *p, lua_Integer step,
127 lua_Number n; /* try to convert to float */ 127 lua_Number n; /* try to convert to float */
128 if (!tonumber(obj, &n)) /* cannot convert to float? */ 128 if (!tonumber(obj, &n)) /* cannot convert to float? */
129 return 0; /* not a number */ 129 return 0; /* not a number */
130 if (n > 0) { /* if true, float is larger than max integer */ 130 if (luai_numlt(0, n)) { /* if true, float is larger than max integer */
131 *p = LUA_MAXINTEGER; 131 *p = LUA_MAXINTEGER;
132 if (step < 0) *stopnow = 1; 132 if (step < 0) *stopnow = 1;
133 } 133 }