diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 13:14:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 13:14:09 -0300 |
commit | 9618aaf07d0d82ccbac91db22cb42451ec17d7ed (patch) | |
tree | 199314fbf7462d174921c71af389da14b4f6c595 /lbuiltin.c | |
parent | bec9bc4154e54fbc19b134874f6301f1e4654d5d (diff) | |
download | lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.gz lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.bz2 lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.zip |
small corrections in comments
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)); |