From 4894c2796277b47b0ffc8983e8231d2cc95ee09b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 4 Dec 2000 16:33:40 -0200 Subject: lua_Number defined in lua.h (1st version) --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index e47ebd81..e08d8ee7 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.91 2000/10/31 13:10:24 roberto Exp roberto $ +** $Id: liolib.c,v 1.92 2000/11/23 13:49:35 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -476,7 +476,7 @@ static int io_getenv (lua_State *L) { static int io_clock (lua_State *L) { - lua_pushnumber(L, ((double)clock())/CLOCKS_PER_SEC); + lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC); return 1; } -- cgit v1.2.3-55-g6feb