From b9dcf9974d4dbff3ca28ff618259e277cb0090ea Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Jun 2014 16:48:08 -0300 Subject: detail (typos in comments) --- lmathlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 1e5c3ede..bdbb0aa1 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.103 2014/06/18 12:35:53 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.104 2014/06/26 18:38:28 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -145,14 +145,14 @@ static int math_fmod (lua_State *L) { static int math_modf (lua_State *L) { if (lua_isinteger(L ,1)) { lua_settop(L, 1); /* number is its own integer part */ - lua_pushnumber(L, 0); /* no fractionary part */ + lua_pushnumber(L, 0); /* no fractional part */ } else { lua_Number n = luaL_checknumber(L, 1); /* integer part (rounds toward zero) */ lua_Number ip = (n < 0) ? l_mathop(ceil)(n) : l_mathop(floor)(n); pushnumint(L, ip); - /* fractionary part (test needed for inf/-inf) */ + /* fractional part (test needed for inf/-inf) */ lua_pushnumber(L, (n == ip) ? 0.0 : (n - ip)); } return 2; -- cgit v1.2.3-55-g6feb