summaryrefslogtreecommitdiff
path: root/src/lmathlib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2010-11-22 12:00:00 +0000
committerrepogen <>2010-11-22 12:00:00 +0000
commitfb0603dc21768ef06c36dfebe3e812010cbb759a (patch)
tree9f2613bf0fdb20f9354032bd956f4e0ff1018adc /src/lmathlib.c
parent850a3d8f8d2ef75c2e7579f31e3b301a72c279cd (diff)
downloadlua-github-fb0603dc21768ef06c36dfebe3e812010cbb759a.tar.gz
Lua 5.2.0-alpha-rc35.2.0-alpha-rc3
Diffstat (limited to 'src/lmathlib.c')
-rw-r--r--src/lmathlib.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lmathlib.c b/src/lmathlib.c
index 8494d80d..1127fd51 100644
--- a/src/lmathlib.c
+++ b/src/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.78 2010/11/12 15:47:34 roberto Exp $
+** $Id: lmathlib.c,v 1.79 2010/11/18 18:38:27 roberto Exp $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -136,11 +136,12 @@ static int math_log (lua_State *L) {
static int math_log10 (lua_State *L) {
#if !defined(LUA_COMPAT_LOG10)
- luaL_error(L, "function " LUA_QL("log10")
- " is deprecated; use log(x, 10) instead");
-#endif
+ return luaL_error(L, "function " LUA_QL("log10")
+ " is deprecated; use log(x, 10) instead");
+#else
lua_pushnumber(L, l_tg(log10)(luaL_checknumber(L, 1)));
return 1;
+#endif
}
static int math_exp (lua_State *L) {