diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-18 16:38:27 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-18 16:38:27 -0200 |
commit | bcce769d293d54f5c01c3d408da95404cdd828c2 (patch) | |
tree | 110c0893191d1d4e22d23a0c00f5f227bfe6c468 /lmathlib.c | |
parent | 24baa919c1a5e63a32565cbba0a331de9a1fc63e (diff) | |
download | lua-bcce769d293d54f5c01c3d408da95404cdd828c2.tar.gz lua-bcce769d293d54f5c01c3d408da95404cdd828c2.tar.bz2 lua-bcce769d293d54f5c01c3d408da95404cdd828c2.zip |
avoid "unreacheable code" warnings
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.77 2010/11/11 15:39:12 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.78 2010/11/12 15:47:34 roberto Exp roberto $ |
3 | ** Standard mathematical library | 3 | ** Standard mathematical library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -136,11 +136,12 @@ static int math_log (lua_State *L) { | |||
136 | 136 | ||
137 | static int math_log10 (lua_State *L) { | 137 | static int math_log10 (lua_State *L) { |
138 | #if !defined(LUA_COMPAT_LOG10) | 138 | #if !defined(LUA_COMPAT_LOG10) |
139 | luaL_error(L, "function " LUA_QL("log10") | 139 | return luaL_error(L, "function " LUA_QL("log10") |
140 | " is deprecated; use log(x, 10) instead"); | 140 | " is deprecated; use log(x, 10) instead"); |
141 | #endif | 141 | #else |
142 | lua_pushnumber(L, l_tg(log10)(luaL_checknumber(L, 1))); | 142 | lua_pushnumber(L, l_tg(log10)(luaL_checknumber(L, 1))); |
143 | return 1; | 143 | return 1; |
144 | #endif | ||
144 | } | 145 | } |
145 | 146 | ||
146 | static int math_exp (lua_State *L) { | 147 | static int math_exp (lua_State *L) { |