diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-15 11:27:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-15 11:27:40 -0300 |
commit | 89602bf7476c6ecf04cc0e0125b9664dc15ebb08 (patch) | |
tree | 1daf1062ad89a23286dca8278b323f54fddcff17 /lbaselib.c | |
parent | 56d45378796b881b638671655164a16bb8ad8a57 (diff) | |
download | lua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.tar.gz lua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.tar.bz2 lua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.zip |
'lua_strtonum' -> 'lua_stringtonum'
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.299 2014/10/01 11:54:56 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.300 2014/10/07 18:29:13 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 | */ |
@@ -78,7 +78,7 @@ static int luaB_tonumber (lua_State *L) { | |||
78 | else { | 78 | else { |
79 | size_t l; | 79 | size_t l; |
80 | const char *s = lua_tolstring(L, 1, &l); | 80 | const char *s = lua_tolstring(L, 1, &l); |
81 | if (s != NULL && lua_strtonum(L, s) == l + 1) | 81 | if (s != NULL && lua_stringtonum(L, s) == l + 1) |
82 | return 1; /* successful conversion to number */ | 82 | return 1; /* successful conversion to number */ |
83 | /* else not a number */ | 83 | /* else not a number */ |
84 | } | 84 | } |