mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 12:50:44 +00:00
brevity is a virtue or something like that
This commit is contained in:
parent
18d5d64a4d
commit
a26989c903
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ static int lib_fixedsqrt(lua_State *L)
|
||||||
{
|
{
|
||||||
fixed_t i = luaL_checkfixed(L, 1);
|
fixed_t i = luaL_checkfixed(L, 1);
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
return luaL_error(L, "can't take the square root of a negative number");
|
return luaL_error(L, "square root domain error");
|
||||||
lua_pushfixed(L, FixedSqrt(i));
|
lua_pushfixed(L, FixedSqrt(i));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue