From 607be77ec8d2b6062077772a55831a5aca16fb2d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 1 Apr 2014 11:39:55 -0300 Subject: some details to avoid warnings --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index bede732e..cf8f2a6f 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.92 2013/07/22 16:05:53 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.93 2014/03/31 19:00:52 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -250,7 +250,7 @@ static int math_random (lua_State *L) { static int math_randomseed (lua_State *L) { - srand(luaL_checkunsigned(L, 1)); + srand((unsigned int)luaL_checkunsigned(L, 1)); (void)rand(); /* discard first value to avoid undesirable correlations */ return 0; } -- cgit v1.2.3-55-g6feb