diff options
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 | } |