From c6b64ffe65549b179bfa565e8329430857e335ee Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Oct 2010 18:31:11 -0200 Subject: new type lua_Unsigned and corresponding projection/injection functions --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 83eaf22e..8b7d56dc 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.74 2009/11/24 12:05:44 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.75 2010/07/02 11:38:13 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -220,7 +220,7 @@ static int math_random (lua_State *L) { static int math_randomseed (lua_State *L) { - srand(luaL_checkint(L, 1)); + srand(luaL_checkunsigned(L, 1)); (void)rand(); /* discard first value to avoid undesirable correlations */ return 0; } -- cgit v1.2.3-55-g6feb