aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-26 16:53:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-26 16:53:45 -0200
commit9ae0c082a350a0685a51da0f7bee3266d5c74e79 (patch)
tree08df45369191945693df85ddebb891ca9ebe9f4d /lapi.c
parentaccd7bc25355be4350db6d117515c672121a67f2 (diff)
downloadlua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.tar.gz
lua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.tar.bz2
lua-9ae0c082a350a0685a51da0f7bee3266d5c74e79.zip
small details by lint.
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 8a570674..aa6bd324 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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
270real lua_getnumber (lua_Object object) 270double 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
305void lua_pushnumber (real n) 305void 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;