summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-24 09:42:06 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-24 09:42:06 -0200
commit463edee2fd6436d9ad6ae9f2f3d36b742416a479 (patch)
treec8f749881839e1bcb4f0fc5740e4e1446e1b3ea5
parent88ff582fd8f94dd8ba751142f12bc048815ae20e (diff)
downloadlua-github-463edee2fd6436d9ad6ae9f2f3d36b742416a479.tar.gz
'lua_numtointeger' -> 'lua_numbertointeger'
-rw-r--r--lmathlib.c4
-rw-r--r--ltable.c4
-rw-r--r--lvm.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 974c7280..d9f63c17 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.109 2014/10/01 11:54:56 roberto Exp $
+** $Id: lmathlib.c,v 1.110 2014/10/08 19:57:31 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -91,7 +91,7 @@ static int math_toint (lua_State *L) {
static void pushnumint (lua_State *L, lua_Number d) {
lua_Integer n;
- if (lua_numtointeger(d, &n)) /* does 'd' fit in an integer? */
+ if (lua_numbertointeger(d, &n)) /* does 'd' fit in an integer? */
lua_pushinteger(L, n); /* result is integer */
else
lua_pushnumber(L, d); /* result is float */
diff --git a/ltable.c b/ltable.c
index 986e2708..3d41f4db 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltable.c,v 2.95 2014/09/04 18:15:29 roberto Exp roberto $
+** $Id: ltable.c,v 2.96 2014/10/17 16:28:21 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -88,7 +88,7 @@ static const Node dummynode_ = {
*/
static int numisinteger (lua_Number x, lua_Integer *p) {
if ((x) == l_floor(x)) /* integral value? */
- return lua_numtointeger(x, p); /* try as an integer */
+ return lua_numbertointeger(x, p); /* try as an integer */
else return 0;
}
diff --git a/lvm.c b/lvm.c
index 974f9f77..91048175 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 2.223 2014/09/04 18:15:29 roberto Exp roberto $
+** $Id: lvm.c,v 2.224 2014/10/17 16:28:21 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -92,7 +92,7 @@ static int tointeger_aux (const TValue *obj, lua_Integer *p, int mode) {
else if (mode > 0) /* needs ceil? */
f += 1; /* convert floor to ceil (remember: n != f) */
}
- return lua_numtointeger(f, p);
+ return lua_numbertointeger(f, p);
}
else if (ttisinteger(obj)) {
*p = ivalue(obj);