brevity is a virtue or something like that
This commit is contained in:
parent
18d5d64a4d
commit
a26989c903
|
@ -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 New Issue