diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-15 09:29:48 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-15 09:29:48 -0300 |
| commit | 114d10cbc599e848bd28f5b454ec4f8f823dce37 (patch) | |
| tree | ae1222395e472660a63466431ac9372471ded375 | |
| parent | 9f3f5b6f4106966eb68f9c54dca9653bf3539bf9 (diff) | |
| download | lua-114d10cbc599e848bd28f5b454ec4f8f823dce37.tar.gz lua-114d10cbc599e848bd28f5b454ec4f8f823dce37.tar.bz2 lua-114d10cbc599e848bd28f5b454ec4f8f823dce37.zip | |
detail (comment)
| -rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | */ |
| 71 | int luaV_numtointeger (lua_Number n, lua_Integer *p) { | 71 | int 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))) { |
