detail (removing spaces at end of lines)

This commit is contained in:
Roberto Ierusalimschy
2016-12-22 11:08:50 -02:00
parent 9903dd52a3
commit 2a235312f0
12 changed files with 30 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lmathlib.c,v 1.117 2015/10/02 15:39:23 roberto Exp roberto $
** $Id: lmathlib.c,v 1.118 2016/12/20 18:37:00 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -265,7 +265,7 @@ static int math_random (lua_State *L) {
default: return luaL_error(L, "wrong number of arguments");
}
/* random integer in the interval [low, up] */
luaL_argcheck(L, low <= up, 1, "interval is empty");
luaL_argcheck(L, low <= up, 1, "interval is empty");
luaL_argcheck(L, low >= 0 || up <= LUA_MAXINTEGER + low, 1,
"interval too large");
r *= (double)(up - low) + 1.0;
@@ -284,9 +284,9 @@ static int math_randomseed (lua_State *L) {
static int math_type (lua_State *L) {
if (lua_type(L, 1) == LUA_TNUMBER) {
if (lua_isinteger(L, 1))
lua_pushliteral(L, "integer");
lua_pushliteral(L, "integer");
else
lua_pushliteral(L, "float");
lua_pushliteral(L, "float");
}
else {
luaL_checkany(L, 1);