summaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-15 09:29:48 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-15 09:29:48 -0300
commit114d10cbc599e848bd28f5b454ec4f8f823dce37 (patch)
treeae1222395e472660a63466431ac9372471ded375 /lvm.c
parent9f3f5b6f4106966eb68f9c54dca9653bf3539bf9 (diff)
downloadlua-114d10cbc599e848bd28f5b454ec4f8f823dce37.tar.gz
lua-114d10cbc599e848bd28f5b454ec4f8f823dce37.tar.bz2
lua-114d10cbc599e848bd28f5b454ec4f8f823dce37.zip
detail (comment)
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))) {