diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.6 1997/11/19 18:16:33 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.7 1997/11/21 19:00:46 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -267,7 +267,7 @@ int lua_isfunction (lua_Object o) | |||
267 | } | 267 | } |
268 | 268 | ||
269 | 269 | ||
270 | real lua_getnumber (lua_Object object) | 270 | double lua_getnumber (lua_Object object) |
271 | { | 271 | { |
272 | if (object == LUA_NOOBJECT) return 0.0; | 272 | if (object == LUA_NOOBJECT) return 0.0; |
273 | if (tonumber(Address(object))) return 0.0; | 273 | if (tonumber(Address(object))) return 0.0; |
@@ -302,7 +302,7 @@ void lua_pushnil (void) | |||
302 | incr_top; | 302 | incr_top; |
303 | } | 303 | } |
304 | 304 | ||
305 | void lua_pushnumber (real n) | 305 | void lua_pushnumber (double n) |
306 | { | 306 | { |
307 | ttype(L->stack.top) = LUA_T_NUMBER; | 307 | ttype(L->stack.top) = LUA_T_NUMBER; |
308 | nvalue(L->stack.top) = n; | 308 | nvalue(L->stack.top) = n; |