Update lmathlib.cpp

This commit is contained in:
Baileyeatspizza 2021-11-24 19:56:37 +00:00
parent dd02420f70
commit 525501d1e4

View file

@ -385,8 +385,7 @@ static int math_sign(lua_State* L)
static int math_round(lua_State* L)
{
double v = luaL_checknumber(L, 1);
lua_pushnumber(L, round(v));
lua_pushnumber(L, round(luaL_checknumber(L, 1)));
return 1;
}