diff options
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ static int math_floor (lua_State *L) { | |||
106 | 106 | ||
107 | static int math_ceil (lua_State *L) { | 107 | static int math_ceil (lua_State *L) { |
108 | if (lua_isinteger(L, 1)) | 108 | if (lua_isinteger(L, 1)) |
109 | lua_settop(L, 1); /* integer is its own ceil */ | 109 | lua_settop(L, 1); /* integer is its own ceiling */ |
110 | else { | 110 | else { |
111 | lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); | 111 | lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); |
112 | pushnumint(L, d); | 112 | pushnumint(L, d); |