diff options
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.28 1998/05/31 22:19:35 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.29 1998/06/05 22:17:44 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -200,7 +200,7 @@ static void luaI_type (void) | |||
200 | static void tonumber (void) | 200 | static void tonumber (void) |
201 | { | 201 | { |
202 | int base = luaL_opt_number(2, 10); | 202 | int base = luaL_opt_number(2, 10); |
203 | if (base == 10) { /* standard convertion */ | 203 | if (base == 10) { /* standard conversion */ |
204 | lua_Object o = lua_getparam(1); | 204 | lua_Object o = lua_getparam(1); |
205 | if (lua_isnumber(o)) | 205 | if (lua_isnumber(o)) |
206 | lua_pushnumber(lua_getnumber(o)); | 206 | lua_pushnumber(lua_getnumber(o)); |