diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-26 16:53:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-26 16:53:45 -0200 |
commit | 9ae0c082a350a0685a51da0f7bee3266d5c74e79 (patch) | |
tree | 08df45369191945693df85ddebb891ca9ebe9f4d /lapi.c | |
parent | accd7bc25355be4350db6d117515c672121a67f2 (diff) | |
download | lua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.tar.gz lua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.tar.bz2 lua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.zip |
small details by lint.
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; |