small modifications (format, small optimizations, etc)

This commit is contained in:
Roberto Ierusalimschy
1997-11-21 17:00:46 -02:00
parent 6153200bc2
commit accd7bc253
13 changed files with 301 additions and 295 deletions

4
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $
** $Id: lapi.c,v 1.6 1997/11/19 18:16:33 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -270,7 +270,7 @@ int lua_isfunction (lua_Object o)
real lua_getnumber (lua_Object object)
{
if (object == LUA_NOOBJECT) return 0.0;
if (tonumber (Address(object))) return 0.0;
if (tonumber(Address(object))) return 0.0;
else return (nvalue(Address(object)));
}