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.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 | } |