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 c2b82aed..50d81fa4 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.188 2014/03/07 16:19:00 roberto Exp roberto $ 2** $Id: lvm.c,v 2.189 2014/03/14 16:54:08 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*/
@@ -66,7 +66,7 @@ int luaV_tostring (lua_State *L, StkId obj) {
66** Check whether a float number is within the range of a lua_Integer. 66** Check whether a float number is within the range of a lua_Integer.
67** (The comparisons are tricky because of rounding, which can or 67** (The comparisons are tricky because of rounding, which can or
68** not occur depending on the relative sizes of floats and integers.) 68** not occur depending on the relative sizes of floats and integers.)
69** This function is called only when 'n' has an integer value. 69** This function should be called only when 'n' has an integral value.
70*/ 70*/
71int luaV_numtointeger (lua_Number n, lua_Integer *p) { 71int luaV_numtointeger (lua_Number n, lua_Integer *p) {
72 if (cast_num(MIN_INTEGER) <= n && n < (MAX_INTEGER + cast_num(1))) { 72 if (cast_num(MIN_INTEGER) <= n && n < (MAX_INTEGER + cast_num(1))) {