From 463edee2fd6436d9ad6ae9f2f3d36b742416a479 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 24 Oct 2014 09:42:06 -0200 Subject: 'lua_numtointeger' -> 'lua_numbertointeger' --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') 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 */ -- cgit v1.2.3-55-g6feb