to avoid warnings about "typecast" (Visual C++)

This commit is contained in:
Roberto Ierusalimschy
1998-12-28 11:44:54 -02:00
parent 4c94d8cc2c
commit 766e67ef3b
10 changed files with 75 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lmathlib.c,v 1.10 1998/06/19 16:14:09 roberto Exp roberto $
** $Id: lmathlib.c,v 1.11 1998/09/08 19:25:35 roberto Exp roberto $
** Lua standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -122,7 +122,7 @@ static void math_frexp (void) {
}
static void math_ldexp (void) {
lua_pushnumber(ldexp(luaL_check_number(1), luaL_check_number(2)));
lua_pushnumber(ldexp(luaL_check_number(1), luaL_check_int(2)));
}
@@ -166,9 +166,8 @@ static void math_random (void)
}
static void math_randomseed (void)
{
srand(luaL_check_number(1));
static void math_randomseed (void) {
srand(luaL_check_int(1));
}