diff options
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.91 2000/10/31 13:10:24 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.92 2000/11/23 13:49:35 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -476,7 +476,7 @@ static int io_getenv (lua_State *L) { | |||
476 | 476 | ||
477 | 477 | ||
478 | static int io_clock (lua_State *L) { | 478 | static int io_clock (lua_State *L) { |
479 | lua_pushnumber(L, ((double)clock())/CLOCKS_PER_SEC); | 479 | lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC); |
480 | return 1; | 480 | return 1; |
481 | } | 481 | } |
482 | 482 | ||