brevity is a virtue or something like that

This commit is contained in:
Inuyasha 2016-04-18 21:59:33 -07:00
parent 18d5d64a4d
commit a26989c903

View file

@ -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;
} }