Skip to content

Commit

Permalink
Update lmathlib.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Baileyeatspizza committed Nov 24, 2021
1 parent dd02420 commit 525501d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions VM/src/lmathlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 525501d

Please sign in to comment.