aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-17 16:17:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-17 16:17:55 -0300
commit0d31efb365e93cd983d63519f83b46c8898b92c4 (patch)
treec86f9333fea6339342937bb3a4f296626a9f91c8 /lbaselib.c
parentf97c64d7bf4c0f373711795d8faba0e8cd206761 (diff)
downloadlua-0d31efb365e93cd983d63519f83b46c8898b92c4.tar.gz
lua-0d31efb365e93cd983d63519f83b46c8898b92c4.tar.bz2
lua-0d31efb365e93cd983d63519f83b46c8898b92c4.zip
'lua_stringtonum' -> 'lua_stringtonumber'
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 4b5ff3f0..a6739067 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.301 2014/10/15 14:27:40 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.302 2014/10/17 16:28:21 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -77,7 +77,7 @@ static int luaB_tonumber (lua_State *L) {
77 else { 77 else {
78 size_t l; 78 size_t l;
79 const char *s = lua_tolstring(L, 1, &l); 79 const char *s = lua_tolstring(L, 1, &l);
80 if (s != NULL && lua_stringtonum(L, s) == l + 1) 80 if (s != NULL && lua_stringtonumber(L, s) == l + 1)
81 return 1; /* successful conversion to number */ 81 return 1; /* successful conversion to number */
82 /* else not a number */ 82 /* else not a number */
83 } 83 }