summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lua/src/loslib.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lua/src/loslib.c')
-rw-r--r--3rdparty/lua/src/loslib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/lua/src/loslib.c b/3rdparty/lua/src/loslib.c
index 20359b24747..d78ff757df9 100644
--- a/3rdparty/lua/src/loslib.c
+++ b/3rdparty/lua/src/loslib.c
@@ -152,7 +152,7 @@ static int os_getenv (lua_State *L) {
static int os_clock (lua_State *L) {
- lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC);
+ lua_pushnumber(L, ((lua_Number)(int)clock())/(lua_Number)CLOCKS_PER_SEC);
return 1;
}