From 0d31efb365e93cd983d63519f83b46c8898b92c4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 17 Oct 2014 16:17:55 -0300 Subject: 'lua_stringtonum' -> 'lua_stringtonumber' --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 4b5ff3f0..a6739067 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.301 2014/10/15 14:27:40 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.302 2014/10/17 16:28:21 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -77,7 +77,7 @@ static int luaB_tonumber (lua_State *L) { else { size_t l; const char *s = lua_tolstring(L, 1, &l); - if (s != NULL && lua_stringtonum(L, s) == l + 1) + if (s != NULL && lua_stringtonumber(L, s) == l + 1) return 1; /* successful conversion to number */ /* else not a number */ } -- cgit v1.2.3-55-g6feb